ReduxSimpleStarter icon indicating copy to clipboard operation
ReduxSimpleStarter copied to clipboard

Questions

Open pknepali opened this issue 7 years ago • 1 comments

i just recently bought your course on udemy. Please help below queries

Do your have completed source code for each project? where can i find it?

In Section 1 LEcture 11. i see that App component is rendered in index.html. How does index.js and index.html are refering to each other? How does index.js know that ".container" is of the index.html?

Can you please give overview on npm and also how doing npm start started local server? Please overview on how this is done and also reference to learning material on this. Thanks

pknepali avatar Oct 18 '17 04:10 pknepali

@pknepali I would try posting your questions on the q&a part of the course for more visibility.

How does index.js and index.html are refering to each other? How does index.js know that ".container" is of the index.html?

index.html is aware of the code in index.js, because the code in this file is being transpiled by webpack and babel into the bundle.js file that is referenced in the index.html file (this is the tooling he mentioned in Section 1 Lecture 3).

You can learn more about webpack here: https://webpack.js.org/guides/getting-started/

Can you please give overview on npm and also how doing npm start started local server?

The npm start command is referring to the start script that is listed in the package.json file. Basically, when you run this command, it will run the code that is contained in that file, in this case it is running the webpack-dev-server.js script.

  "scripts": {
    "start": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js",

You can learn more about npm here: https://docs.npmjs.com/getting-started/what-is-npm

scottwestover avatar Oct 19 '17 00:10 scottwestover