forked from pmndrs/zustand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(issue-1215): restructure top level docs (pmndrs#1222)
- Loading branch information
1 parent
9cfad3e
commit b85f641
Showing
17 changed files
with
40 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Comparison | ||
description: | ||
nav: 2 | ||
--- | ||
|
||
⚠️ This doc is still under construction. https://github.com/pmndrs/zustand/discussions/1033 | ||
|
||
## Why zustand over react-redux? | ||
|
||
- Simple and un-opinionated | ||
- Makes hooks the primary means of consuming state | ||
- Doesn't wrap your app in context providers | ||
- [Can inform components transiently (without causing render)](recipes#transient-updates-for-often-occurring-state-changes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Concepts | ||
description: | ||
nav: 1 | ||
--- | ||
|
||
⚠️ This doc is still under construction. https://github.com/pmndrs/zustand/discussions/1033 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/auto-generating-selectors.md → docs/guides/auto-generating-selectors.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/event-handler-in-pre-react-18.md → docs/guides/event-handler-in-pre-react-18.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/flux-inspired-practice.md → docs/guides/flux-inspired-practice.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/immutable-state-and-merging.md → docs/guides/immutable-state-and-merging.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Immutable state and merging | ||
nav: 2 | ||
nav: 5 | ||
--- | ||
|
||
Like `useState`, we need to update state immutably. | ||
|
2 changes: 1 addition & 1 deletion
2
docs/maps-and-sets-usage.md → docs/guides/maps-and-sets-usage.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/practice-with-no-store-actions.md → .../guides/practice-with-no-store-actions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: TypeScript Guide | ||
nav: 4 | ||
nav: 9 | ||
--- | ||
|
||
## Basic usage | ||
|
2 changes: 1 addition & 1 deletion
2
docs/updating-nested-state-object-values.md → ...es/updating-nested-state-object-values.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Updating nested state object values | ||
nav: 7 | ||
nav: 4 | ||
--- | ||
|
||
## Deep nested object | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
docs/persisting-store-data.md → docs/integrations/persisting-store-data.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/zustand-v3-create-context.md → ...ous-versions/zustand-v3-create-context.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters