MCPcopy Create free account
hub / github.com/TanStack/devtools / App

Function App

examples/react/time-travel/src/index.tsx:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { store } from './zustand-client'
5
6function 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
19const root = createRoot(document.getElementById('root')!)
20root.render(<App />)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected