Error in div

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

<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-advanced/exercises/self-closing-tags
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
SyntaxError: /home/ccuser/workspace/learn-react-01-03-02/app.js: Unterminated JSX contents (12:8)
10 | THANKS HA LOT
11 |

12 |


| ^
13 | );
at Parser.pp.raise (/usr/lib/node_modules/babelify/node_modules/babylon/lib/parser/location.js:22:13)
at Parser.pp.jsxReadToken (/usr/lib/node_modules/babelify/node_modules/babylon/lib/plugins/jsx/index.js:135:12)
at Parser. (/usr/lib/node_modules/babelify/node_modules/babylon/lib/plugins/jsx/index.js:28:21)
at Parser.readToken (/usr/lib/node_modules/babelify/node_modules/babylon/lib/plugins/flow.js:155:22)
at Parser.nextToken (/usr/lib/node_modules/babelify/node_modules/babylon/lib/tokenizer/index.js:169:21)
at Parser.next (/usr/lib/node_modules/babelify/node_modules/babylon/lib/tokenizer/index.js:81:12)
at Parser.eat (/usr/lib/node_modules/babelify/node_modules/babylon/lib/tokenizer/index.js:90:14)
at Parser.pp.expect (/usr/lib/node_modules/babelify/node_modules/babylon/lib/parser/util.js:83:15)
at Parser.pp.jsxParseOpeningElementAt (/usr/lib/node_modules/babelify/node_modules/babylon/lib/plugins/jsx/index.js:397:8)
at Parser.pp.jsxParseElementAt (/usr/lib/node_modules/babelify/node_modules/babylon/lib/plugins/jsx/index.js:416:29)


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

Did you mean to write, </div>?

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

yup sorry it was the img src error! thanks

1 Like

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