HTML file to use a React component
suggest changeSet up a simple HTML file in the root of the project directory. The id must match the element passed to ReactDOM.render (App in the component example).
Filename: index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="App"></div>
<script src="build/bundle.js" charset="utf-8"></script>
</body>
</html>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents