8/15 (nested JSX) getting error


#1

I got error in 8/15 lesson (nested JSX), but I can't see the reason

This is a task:
"Declare a new variable named myDiv. Set myDiv equal to a JSX

element.

Wrap the

in parentheses, and use indentation and line breaks like in the examples. In between the
tags, nest an

containing the text Hello world."

This is my code:

var myDiv = (
	<div>
  	<h1>
    	Hello world
    </h1>
  </div>
);

Whats wrong?


#2

Same thing happening to me . Were you able to run it ?


#3

var myDiv = (
  <div>
    <h1>Hello world</h1>
  </div>
);

This is the code that the "Get the Code" button show. i typed de same code, but doesnt worked. Guess its a bug


#4

It looks like a bug, I just pressed the Next button so as not to waste time


#5

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