From 6e67a4b8a6b2cd2a61d53b911e50356d70cee859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=89=E1=85=B3=E1=86=BC?= =?UTF-8?q?=E1=84=92=E1=85=AE=E1=86=AB?= Date: Tue, 19 Nov 2024 17:02:34 +0900 Subject: [PATCH] Fix a typo in the state management docs. --- .../src/pages/learn/advanced-use/state-management.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/reactflow.dev/src/pages/learn/advanced-use/state-management.mdx b/sites/reactflow.dev/src/pages/learn/advanced-use/state-management.mdx index 25c1d9380..ebcdef90e 100644 --- a/sites/reactflow.dev/src/pages/learn/advanced-use/state-management.mdx +++ b/sites/reactflow.dev/src/pages/learn/advanced-use/state-management.mdx @@ -19,7 +19,7 @@ export const getStaticProps = getStaticCode(['learn/state-management', 'learn/st with the concepts of state management libraries and how to use them. -In this guide we are explaining how you could use React Flow with the state management library [Zustand](https://github.com/pmndrs/zustand). We will build a little app where every node has a color chooser that updates its background color. In this guide we are are using Zustand, because we are already using it internally for React Flow, but of course you can use any other library like [Redux](https://redux.js.org/), [Recoil](https://recoiljs.org/) or [Jotai](https://jotai.org/) as well. +In this guide we are explaining how you could use React Flow with the state management library [Zustand](https://github.com/pmndrs/zustand). We will build a little app where every node has a color chooser that updates its background color. In this guide we are using Zustand, because we are already using it internally for React Flow, but of course you can use any other library like [Redux](https://redux.js.org/), [Recoil](https://recoiljs.org/) or [Jotai](https://jotai.org/) as well. As you might have seen in the previous guides and examples, React Flow can easily be used with a local component state for handling the nodes and edges of your diagram. When your app grows and you want to alter your state from within your nodes for example, things can get more complex. To avoid passing down functions through the node data field, you could use a [React context](https://reactjs.org/docs/context.html) or add a state management library as explained in this guide.