2579ad7648
updated zustand example to 4.3.6 changed out zustand's deprecated methods (createContext, create) converted the example to typescript ## Why zustand's example in nextjs repo is for zustand v3 which is quite different to how things are done in v4, it was also in javascript. back when when I started to use zustand in my nextjs app, this example helped me a lot and now, I wanna do the same for devs that come here to see how they can integrate next and zustand. ## Documentation / Examples [✓] Make sure the linting passes by running pnpm build && pnpm lint [✓] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
19 lines
387 B
JSON
19 lines
387 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint"
|
|
},
|
|
"dependencies": {
|
|
"@types/node": "18.14.6",
|
|
"@types/react": "18.0.28",
|
|
"@types/react-dom": "18.0.11",
|
|
"next": "latest",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"typescript": "4.9.5",
|
|
"zustand": "^4.3.6"
|
|
}
|
|
}
|