I am working on a React project and I would like to know what is the difference between those two codes :
import "./styles.css";
export default function App() {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
}
And that one :
import "./styles.css";
const App = () => {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
}
export default App;
If I look at a browser I see the same thing ...
Could you explain me ?
Thank you very much !