Skip to content
Myr

Fix README internal links for GitHub rendering (#3403)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Initial plan * Fix docs index links Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * Make docs links GitHub friendly Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * Move docs assets to root and update paths Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * Update image source for Zustand logo * Fix docs internal links for GitHub Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * Make docs hero links GitHub friendly Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * Fix image path for Zustand logo in introduction.md * Update image source path in README.md * Delete docs/public directory * Fix README links for GitHub view Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> ---------

authored by Copilot · committed by GitHub · parent 0d250b3 · Browse files · 10 files+52 added−52 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
  • Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com>
  • Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>

Diff stats

10 files+52 added−52 removed

  • other:+52 added−52 removed

10 files+52 added−52 removed

modified:.github/workflows/docs.yml+2 added-2 removed
modified:docs/learn/getting-started/introduction.md+1 added-1 removed
modified:docs/learn/index.md+20 added-20 removed
deleted:docs/public/bear.jpgbinary

A binary file, deleted.

deleted:docs/public/favicon.icobinary

A binary file, deleted.

modified:docs/reference/index.md+19 added-19 removed
5 unmodified lines
6## APIs78Core functions for creating and configuring stores.910- [`create`](/reference/apis/create.md) — Create a store bound to React via hooks.11- [`createStore`](/reference/apis/create-store.md) — Create a standalone store without React.12- [`createWithEqualityFn`](/reference/apis/create-with-equality-fn.md) — Like `create`, but with a custom equality function.13- [`shallow`](/reference/apis/shallow.md) — Utility for shallow comparison of objects and arrays.10- [`create`](./apis/create.md) — Create a store bound to React via hooks.11- [`createStore`](./apis/create-store.md) — Create a standalone store without React.12- [`createWithEqualityFn`](./apis/create-with-equality-fn.md) — Like `create`, but with a custom equality function.13- [`shallow`](./apis/shallow.md) — Utility for shallow comparison of objects and arrays.1415## Hooks1617React hooks for reading and subscribing to store state.1819- [`useStore`](/reference/hooks/use-store.md) — Access and subscribe to a vanilla store from a React component.20- [`useStoreWithEqualityFn`](/reference/hooks/use-store-with-equality-fn.md) — Like `useStore`, but with a custom equality function.21- [`useShallow`](/reference/hooks/use-shallow.md) — Derive a stable reference from a selector using shallow comparison.19- [`useStore`](./hooks/use-store.md) — Access and subscribe to a vanilla store from a React component.20- [`useStoreWithEqualityFn`](./hooks/use-store-with-equality-fn.md) — Like `useStore`, but with a custom equality function.21- [`useShallow`](./hooks/use-shallow.md) — Derive a stable reference from a selector using shallow comparison.2223## Middlewares2425Composable middleware functions for extending store behavior.2627- [`persist`](/reference/middlewares/persist.md) — Persist and rehydrate state using `localStorage` or a custom storage engine.28- [`devtools`](/reference/middlewares/devtools.md) — Connect a store to Redux DevTools for time-travel debugging.29- [`redux`](/reference/middlewares/redux.md) — Use a reducer and dispatch pattern similar to Redux.30- [`immer`](/reference/middlewares/immer.md) — Write state updates with mutable syntax using Immer.31- [`combine`](/reference/middlewares/combine.md) — Combine separate state slices into a single store with inferred types.32- [`subscribeWithSelector`](/reference/middlewares/subscribe-with-selector.md) — Subscribe to a slice of state with selector and equality support.27- [`persist`](./middlewares/persist.md) — Persist and rehydrate state using `localStorage` or a custom storage engine.28- [`devtools`](./middlewares/devtools.md) — Connect a store to Redux DevTools for time-travel debugging.29- [`redux`](./middlewares/redux.md) — Use a reducer and dispatch pattern similar to Redux.30- [`immer`](./middlewares/immer.md) — Write state updates with mutable syntax using Immer.31- [`combine`](./middlewares/combine.md) — Combine separate state slices into a single store with inferred types.32- [`subscribeWithSelector`](./middlewares/subscribe-with-selector.md) — Subscribe to a slice of state with selector and equality support.3334## Integrations3536In-depth guides for using Zustand alongside third-party libraries.3738- [Persisting store data](/reference/integrations/persisting-store-data.md) — Detailed guide to the `persist` middleware and storage adapters.39- [Immer middleware](/reference/integrations/immer-middleware.md) — Detailed guide to the `immer` middleware.40- [Third-party libraries](/reference/integrations/third-party-libraries.md) — Using Zustand with other libraries in the ecosystem.38- [Persisting store data](./integrations/persisting-store-data.md) — Detailed guide to the `persist` middleware and storage adapters.39- [Immer middleware](./integrations/immer-middleware.md) — Detailed guide to the `immer` middleware.40- [Third-party libraries](./integrations/third-party-libraries.md) — Using Zustand with other libraries in the ecosystem.4142## Migrations4344Upgrade guides between major versions.4546- [Migrating to v5](/reference/migrations/migrating-to-v5.md) — How to upgrade from Zustand v4.47- [Migrating to v4](/reference/migrations/migrating-to-v4.md) — How to upgrade from Zustand v3.46- [Migrating to v5](./migrations/migrating-to-v5.md) — How to upgrade from Zustand v4.47- [Migrating to v4](./migrations/migrating-to-v4.md) — How to upgrade from Zustand v3.4849## Previous versions5051APIs that existed in older versions of Zustand and are no longer recommended for new code.5253- [createContext (v3)](/reference/previous-versions/zustand-v3-create-context.md) — The `createContext` export from `zustand/context`, deprecated in v4 and removed in v5.53- [createContext (v3)](./previous-versions/zustand-v3-create-context.md) — The `createContext` export from `zustand/context`, deprecated in v4 and removed in v5.
added:docs/bear.jpgbinary

A binary file, added.

added:docs/favicon.icobinary

A binary file, added.

modified:docs/index.md+7 added-7 removed
modified:README.md+3 added-3 removed
1<p align="center">2 <img src="docs/public/bear.jpg" />2 <img src="./docs/bear.jpg" />3</p>45[![Build Status](https://img.shields.io/github/actions/workflow/status/pmndrs/zustand/test.yml?branch=main&style=flat&colorA=000000&colorB=000000)](https://github.com/pmndrs/zustand/actions?query=workflow%3ATest)6[![Build Size](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdeno.bundlejs.com%2F%3Fq%3Dzustand&query=%24.size.uncompressedSize&style=flat&label=bundle%20size&colorA=000000&colorB=000000)](https://bundlejs.com/?q=zustand)
493 unmodified lines
500- You may wonder how to organize your code for better maintenance: [Splitting the store into separate slices](./docs/learn/guides/slices-pattern.md).501- Recommended usage for this unopinionated library: [Flux inspired practice](./docs/learn/guides/flux-inspired-practice.md).502- [Calling actions outside a React event handler in pre-React 18](./docs/learn/guides/event-handler-in-pre-react-18.md).503- [Testing](./docs/learn/guides/testing.md)504- For more, have a look [in the docs folder](./docs/)504- For more, have a look [in the docs folder](./docs/index.md)505506## Third-Party Libraries507508Some users may want to extend Zustand's feature set which can be done using third-party libraries made by the community. For information regarding third-party libraries with Zustand, visit [the doc](./docs/integrations/third-party-libraries.md).508Some users may want to extend Zustand's feature set which can be done using third-party libraries made by the community. For information regarding third-party libraries with Zustand, visit [the doc](./docs/reference/integrations/third-party-libraries.md).509510## Comparison with other libraries511512- [Difference between zustand and other state management libraries for React](https://zustand.docs.pmnd.rs/getting-started/comparison)