React setup : foundation file
creating one HTML file to rule them all
Once we let those dependencies install, we can create a new folder called public
, in which we can place our foundational index.html
file:
Briefly, this minimal HTML file consists of:
the
<head>
tag for technical meta datacharacter set
browser sizing
<title>
bar text
the
<body>
tag which has<noscript>
warning because React apps require JavaScript (which everyone should have enabled on their browsers)<div id="root"></div>
the most important part here, where the React app lives!
Last updated