React.js task 12, ReactDOM.render 2


My code just isnt running despite the fact that i have completed what they asked for

I replaced "app" with "container" in app.js, and I have replaced the app element in the html file with the container element, not working

var React = require('react');
var ReactDOM = require('react-dom');

ReactDOM.render(<h1>Render me!</h1>, 


Please show us your index.html.

Tell us what you mean by "not working". Are you seeing an error message? If so, what is it saying?



You probably updated the app.js file but not the index.html file

for this exercise you need to

 replace <main id="app"></main> with <span id="container"></span> in index.html

replace document.getElementById('app') with document.getElementById('container') in app.js


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.