Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

App.tsx

24 lines502 Bytes

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 )
23​
24export default App