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 trialandrea molinari
14,850 PointsGoodmorning. Syntax problem
Good morning. I have this problem
function App(){
return( <div>
<hi>Hi React </h1> ^ <p>AAA</p> </div>
) } React.render(<App />, document.getElementById('container'));
Can you help me?
2 Answers
Stuart Wright
41,120 PointsIs the problem simply that you've used a <hi> tag rather than <h1> (letter i instead of number 1)?
I Dilate
3,983 PointsYou have a few syntax problems in your code there.
As Stuart mentioned, <hi> should definitely be an <h1>, but you must also encapsulate the string you're returning, for example using speech marks:
return ("<div><h1>Hi React</h1></div>");