()
| 1 | import { createSignal } from 'solid-js' |
| 2 | |
| 3 | function 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 | ) |
| 22 | } |
| 23 | |
| 24 | export default App |