Here is a page created purely for experiments:
<html> <head> <title>Hello World!</title> </head> <body> <div id="root">New window</div> <script type="text/jsx" src="index.jsx"/> </body> </html> And the code index.jsx :
import React from 'react' import ReactDOM from 'react-dom' ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') ); And now, when you start the application, the page loads normally, but the value stored in root does not change. What's wrong?
Thanks in advance.