13/15 Variable inside ReactDOM.render()

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

Hi everyone, I was wondering if anyone can provide some input on a situation I'm facing. I've ensured that the first argument inside the ReactDOM.render(); is correct, and have at least checked it 3 times. Unless I'm missing extremely obvious, would one be able to see what's wrong with my code? Or, would one see this as a bug?

Appreciate any feedback on this.

Kind regards,
Ehsan

<Below this line, add a link to the EXACT exercise that you are stuck at.>
Exercise:

https://www.codecademy.com/courses/react-101/lessons/react-jsx-intro/exercises/reactdom-render-variable?action=resume

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

Error message: The first argument passed to ReactDOM.render should be myList.
Behaviour: The console does not seem to accept my code despite using the guide code inside the explanation tab, as reference.

```

Code inside app.js :

var React = require(‘react’);
var ReactDOM = require(‘react-dom’);

// Write code here:
var myList = (


  • Learn JS

  • Learn ReactJS

  • Learn Node


);

ReactDOM.render(
mylist,
document.getElementById(‘app’)
);

Code inside index.html:

Learn ReactJS ```

Hi guys, I just found out I didn’t put the L in myList, capitalized - all working now.

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