import React from "react";
export default function App() {
console.log('App');
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
}
import React from "react";
export default function App() {
console.log('App');
const [foo, setFoo] = React.useState(1);
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
}
const [foo, setFoo] = React.useState(1);
Find more questions by tags ReactJavaScript