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

App.tsx

24 lines507 Bytes

1import { createSignal } from 'solid-js'
2​
3function App() {
4 const [count, setCount] = createSignal(0)
5​
6 return (
7 <>
8 <div></div>
9 <div class="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 class="read-the-docs">
18 Click on the Vite and React logos to learn more
19 </p>
20 </>
21 )
23​
24export default App