React not rendering

Tell us what’s happening:
What stops my code from rendering? I’ve been trying to use extremely basic knowledge i’ve learned from the Front End Libraries course React section, but it just doesn’t seem to render. Am i doing something wrong or missing something?

Your code so far

Two things:

  • You need to use the babel JS preprocessor
  • return on a line by itself does just that, it returns immediately
1 Like

Thanks, i’ll look into babel JS. What do you mean about return? Isn’t that how i replace the ‘challenge-node-root’ div?

If I right the following code, what do you think the function returns when it is called?

function calc(num1, num2) {
   (a + b);

MDN: Automatic semicolon insertion