As reactjs is connected to the html file?

Don't quite know how to react, it finds the html file to which he should bind.
That is, create-react-app, there are index.js file where the application being rendered in id='root' and index.html the file in which is this root
As index.js identifies this file? No linking reference is not found
March 23rd 20 at 19:25
2 answers
March 23rd 20 at 19:27
Read about the collector modules webpack and specifically about webpackDevServer and HtmlWebpackPlugin. You can run npm run eject in a test project and see the files config/webpack.config.js, config/webpackDevServer.config.js and scripts/start.js how it all is configured and working.

If you donpm run build and open the directory build/static, you will see there all the generated files.
March 23rd 20 at 19:29
As all the usual scripts, connected himself react in the script tag connected index.js within which spelled out the initialization of the root element
The fact of the matter is that script is no connection, just a lone div with aydishnik root for the entire index.html
I understand the case in NPM modules - Karson commented on March 23rd 20 at 19:32
@Sona, even I don't understand how do you connect it? What are you using? - Karl.Herz commented on March 23rd 20 at 19:35
@Karson, as you'll see in the source code and the html that in the browser.
In the extreme case in devtools in the network open the file index.js or whatever you have loaded and look at the initiator column - Tony.Moscis commented on March 23rd 20 at 19:38

Find more questions by tags ReactHTMLJavaScript