11.15 Why is this not working

Why is this code not working?

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-intro/exercises/reactdom-render-i

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Make sure that you start a line with ReactDOM.render, and that it’s capitalized correctly.

Why is this code not working


ReactDOM.render(<h1> Render me!</h1>, 
    document.getElementById('app')
);



Hi,

I spent a while on this as well. What I didn’t realise is you need to click the tab called “app.js” and add the code there. The tab that shows up as default is called “previous.js” - if you add the code on that tab, it will fail.

HTH.

1 Like

This app is not working now. On and off.

Same issue here. Not loading the code editor

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