Error in div


#1

https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-advanced/exercises/self-closing-tags

SyntaxError: /home/ccuser/workspace/learn-react-01-03-02/app.js: Unterminated JSX contents (12:8)
10 | THANKS HA LOT
11 |

var profile = (
  <div>
    <h1>I AM JENKINS</h1>
    <img src="images/jenkins.png" >
    <article>
      I LIKE TO SIT
      <br>
      JENKINS IS MY NAME
      </br>
      THANKS HA LOT
    </article>
  <div/>
);


#2

Did you mean to write, </div>?

and, <img src= ... />?


#3

yup sorry it was the img src error! thanks


#4

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