Open History to see the last commit
1import { useState } from 'react'
2β
3function App() {
4 const [count, setCount] = useState(0)
5β
6 return (
7 <>
8 <div></div>
9 <div className="card">
10 <button onClick={() => setCount((count) => count + 1)}>
11 count is {count}
12 </button>
13 <p>
14 Edit <code>src/App.tsx</code> and save to test HMR
15 </p>
16 </div>
17 <p className="read-the-docs">
18 Click on the Vite and React logos to learn more
19 </p>
20 </>
21 )
22}
23β
24export default App