0

Class Test. I have error line 14. Thanks you sir.

Class Test jsx. I have error line 14. https://code.sololearn.com/WT7h3AC9rGBQ/?ref=app

6th Sep 2021, 5:18 AM
Malick Diagne
Malick Diagne - avatar
1 Respuesta
+ 1
Remove the parentheses from around your return object in your React class and it should work. return (<h1> Hello World! </h1>); To return <h1> Hello World! </h1>; make sure that the object is on the same line as the return! <--- this seems to be the key!
6th Sep 2021, 6:34 AM
ChaoticDawg
ChaoticDawg - avatar