import "./App.css";
import Header from "./components/Header/Header";
function App()
{
return (
<>
<Header/>
</>
);
}
export default App;`
I cant understand what’s going wrong. I don’t think the compiler is reading that line.
2
Answers
You can not leave the
fragment <></>
empty of with single child, it’s used for multiple components. you can put html element instead of fragment.change to