Skip to content

Commit beca84e

Browse files
authored
fix: update broken README links from docs/guides/ to docs/learn/guides/ (#3542)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 038f496 commit beca84e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ npm install zustand
2828

2929
## First create a store
3030

31-
Your store is a hook! You can put anything in it: primitives, objects, functions. State has to be updated immutably and the `set` function [merges state](./docs/guides/immutable-state-and-merging.md) to help it.
31+
Your store is a hook! You can put anything in it: primitives, objects, functions. State has to be updated immutably and the `set` function [merges state](./docs/learn/guides/immutable-state-and-merging.md) to help it.
3232

3333
```jsx
3434
import { create } from 'zustand'
@@ -90,7 +90,7 @@ const nuts = useBearStore((state) => state.nuts)
9090
const honey = useBearStore((state) => state.honey)
9191
```
9292

93-
If you want to construct a single object with multiple state-picks inside, similar to redux's mapStateToProps, you can use [useShallow](./docs/guides/prevent-rerenders-with-use-shallow.md) to prevent unnecessary rerenders when the selector output does not change according to shallow equal.
93+
If you want to construct a single object with multiple state-picks inside, similar to redux's mapStateToProps, you can use [useShallow](./docs/learn/guides/prevent-rerenders-with-use-shallow.md) to prevent unnecessary rerenders when the selector output does not change according to shallow equal.
9494

9595
```jsx
9696
import { create } from 'zustand'

0 commit comments

Comments
 (0)