8/15 (nested JSX) getting error



Why am I getting error when running the code?!!

var myDiv = {
      Hello world


from the instructions:

If a JSX expression takes up more than one line, then you should wrap the multi-line JSX expression in parentheses

parentheses: ()
you use curly brackets, {}


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