dd029f559f
## Documentation / Examples - [✓] Make sure the linting passes
10 lines
290 B
JavaScript
10 lines
290 B
JavaScript
import { useCreateStore, Provider } from '../lib/store'
|
|
|
|
export default function App({ Component, pageProps }) {
|
|
const createStore = useCreateStore(pageProps.initialZustandState)
|
|
return (
|
|
<Provider createStore={createStore}>
|
|
<Component {...pageProps} />
|
|
</Provider>
|
|
)
|
|
}
|