Introducing Redux Zero
Matheus Lima
3.3K29

I wrote a React higher order component recently that solves this problem in a similar way. You can use it to wrap any component with its own initial state and simply call setUiState({ myProperty: 'newValue'}) to update a property.

https://www.npmjs.com/package/react-redux-ui-state

The only thing you need to do is add the uiState reducer to your rootReducer and that’s it. All updates to state dispatch actions that you can observe in the dev tools.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.