Answer the question
In order to leave comments, you need to log in
Why doesn't React understand html?
import React from 'react';
import './App.css';
const App = () =>{
return{
<div className="App">
Hello
</div>
};
}
Failed to compile
./src/App.js
Line 7:3: Parsing error: Unexpected token
5 |
6 | return{
> 7 | <div className="App">
| ^
8 | hello
9 | </div>
10 | };
Answer the question
In order to leave comments, you need to log in
import React from 'react';
import './App.css';
const App = () =>{
return (<div className="App">Hello</div>)
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question