August 2019
Intermediate to advanced
158 pages
3h 13m
English
Before we take a look at the <my-app> component, let's take a look at what happens when you go to localhost:3000. The index.html file runs. The contents of index.html look something like this:
<html> <head> <title>My App</title> </head> <body> <my-app></my-app> <script src="bundle.js"></script> </body></html>
As you can see, it is trying to render the <my-app> component. But it tries to get the definition of MyApp from the bundle.js file. This bundle.js file, as discussed earlier, is a collection of all the components that are required on the page and will be required by the <my-app> component. This bundle.js file is created with the help of webpack. And the configuration of the bundle.js file can be found in the webpack.config.js ...
Read now
Unlock full access