11.15 Why is this not working


#1

Why is this code not working?


https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-intro/exercises/reactdom-render-i


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')
);


#2

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.


#3

This app is not working now. On and off.


#4

Same issue here. Not loading the code editor


#5

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