Skip to content

Commit d95b984

Browse files
committed
docs: update zustand links
1 parent 029427a commit d95b984

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/vike-react-zustand/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# `vike-react-zustand`
66

7-
Integrates [Zustand](https://zustand-demo.pmnd.rs/) state management into your [`vike-react`](https://vike.dev/vike-react) app with SSR support.
7+
Integrates [Zustand](https://zustand-demo.pmnd.rs) state management into your [`vike-react`](https://vike.dev/vike-react) app with SSR support.
88

99
> [!NOTE]
1010
> If you don't use any of your Zustand store during [SSR](https://vike.dev/ssr), then **you don't need `vike-react-zustand`** — you can use Zustand without any Vike integration.
@@ -67,9 +67,9 @@ export const useStore = create<Store>()((set) => ({
6767
```
6868

6969
> [!NOTE]
70-
> The API is the same as [Zustand's `create()`](https://zustand.docs.pmnd.rs/apis/create#reference).
70+
> The API is the same as [Zustand's `create()`](https://zustand.docs.pmnd.rs/reference/apis/create#reference).
7171
>
72-
> (Extra parentheses `()` are required only when using TypeScript, as explained [here](https://zustand.docs.pmnd.rs/guides/typescript#basic-usage).)
72+
> (Extra parentheses `()` are required only when using TypeScript, as explained [here](https://zustand.docs.pmnd.rs/learn/guides/advanced-typescript#basic-usage).)
7373
7474
Use the store in your components:
7575

@@ -122,7 +122,7 @@ const nextStateCreatorFn = withPageContext((pageContext) => stateCreatorFn)
122122

123123
## `useStoreVanilla()`
124124

125-
Sometimes you need to access state in a non-reactive way or act upon the store. For these cases, you can use `useStoreVanilla` to directly access the [vanilla store](https://zustand.docs.pmnd.rs/apis/create-store).
125+
Sometimes you need to access state in a non-reactive way or act upon the store. For these cases, you can use `useStoreVanilla` to directly access the [vanilla store](https://zustand.docs.pmnd.rs/reference/apis/create-store).
126126

127127
```tsx
128128
import { useStoreVanilla } from 'vike-react-zustand'

0 commit comments

Comments
 (0)