React.js task 12, ReactDOM.render 2


#1


https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-intro/exercises/reactdom-render-ii?user_id=534ca7bf8c1ccc184a000bfd


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>, 
    document.getElementById('container')
);


#2

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?


#4

@munrooper

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

#5

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