Create a Complex JSX Elementt

*Tell us what’s happening:
i am a newbie in react trying to go round this example but it seem my code is not working … how do i render react?

Your code so far

  <div id="app"></div>
  <script type="text/babel">
  const JSX = <div>
        <h1>kllkjlj jlkjlkjp</h1>
        <p>mnnlknn nlnnlnlnnlnadfnlds klkjj</p>
            <li>Paragraph One</li>
            <li>Paragraph Two</li>
            <li>Paragraph Three</li>
  ReactDOM.render(JSX, app);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:

This is a JS-only editor, so HTML tags shouldn’t be present.

You just need to declare the JSX constant. The grader will call ReactDOM.render in the background, so you don’t have to do it yourself.

PS. Once you need to use ReactDOM.render yourself, the second argument should be something like document.getElementById('app'), not just app.


i did what you said by removing reactDom yet is still not working

i keep getting JSX is not defined

Did you also remove the HTML tags?

you can simply try this…

const JSX = <div>
                	<li>List 01</li>
                	<li>List 02</li>
                	<li>List 03</li>

hope it works…