docs/content/guides/getting-started/react-redux/react-redux.md
In this tutorial, you will connect a Handsontable grid to a Redux store. You will learn to dispatch actions on cell changes and sync grid data with global state.
[[toc]]
::: tip
Before using any state management library, make sure you know how Handsontable handles data: see the Binding to data page.
:::
The following example implements the @handsontable/react-wrapper component with a readOnly toggle switch and the Redux state manager.
::: example #example1 :react-redux --js 1 --ts 2 --deps redux@4 [email protected]
:::
This example shows:
HexColorPicker). This component acts both as an editor and as a renderer.StarRatingComponent).The editor component changes the behavior of the renderer component, by passing information through Redux (and the connect() method of react-redux).
::: example #example6 :react-advanced --js 1 --ts 2 --deps redux@4 [email protected] [email protected] [email protected]
:::
HotTable component to a Redux store using react-redux's connect() method.afterChange hook dispatches Redux actions whenever the user edits a cell, keeping global state in sync.