()
| 4 | import { store } from './zustand-client' |
| 5 | |
| 6 | function App() { |
| 7 | const { count, increment, decrement } = useStore(store) |
| 8 | return ( |
| 9 | <div> |
| 10 | <h1>Zustand time-travel</h1> |
| 11 | <h2>Current count: {count}</h2> |
| 12 | <button onClick={increment}>Increment</button> |
| 13 | <button onClick={decrement}>Decrement</button> |
| 14 | <Devtools /> |
| 15 | </div> |
| 16 | ) |
| 17 | } |
| 18 | |
| 19 | const root = createRoot(document.getElementById('root')!) |
| 20 | root.render(<App />) |
nothing calls this directly
no outgoing calls
no test coverage detected