Stuck at square one of React app

I can’t see what’s wrong here. It’s telling me to add “error boundaries”.
No clue what that is.

Not sure what the question is exactly, but one bug I found.

return 
  (
    'this value is not returned in a function call' 
  )

because the return value must begin on the same line as the return keyword

return (
  'this value would be returned' +
  'in a function call'
)
1 Like

Wow! Never seen that before. Must be a JSX thing.

It’s not a JSX thing, it’s a semicolon inference thing. return is a valid statement all on its own, as is the following expression, so it takes it as two statements. Your IDE should probably be highlighting this as a warning (WebStorm certainly does)

I was using codepen.