React setup : index.js
connecting the HTML with JavaScript
Now, we will connect the foundational HTML file with a foundational JavaScript file; this src/index.js
file also happens to import the React scripts:
Note that errors will occur because we have not created the App
code yet, which will do in the next section!
Also note:
StrictMode
is a built-in component of React which outputs errors in the browser's console concerning any problems inside the<StrictMode></StrictMode>
tagcreateRoot
builds upon the DOM inindex.html
Last updated