Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React Basics (2018) First Steps in React Render an Element

Stephen Garcia
seal-mask
.a{fill-rule:evenodd;}techdegree
Stephen Garcia
Python Development Techdegree Student 11,647 Points

Title is not showing up in browser

The page is loaded and I'm getting an error saying app.js:9 Uncaught SyntaxError: missing ) after argument list.

If anyone could look it over it would be much appreciated.

https://w.trhou.se/qswdmsysei

2 Answers

Hi Stephen!

I haven't tested it, but I suspect that your issue is the semicolon after document.getElementById("root").

Instead of this:

ReactDOM.render(
  title,
  document.getElementById("root");
);

Try this:

ReactDOM.render(
  title,
  document.getElementById("root")
);

I think that will fix it - but I'm not sure (try it, anyway, though).

I hope that helps.

Stay safe and happy coding!