DEV Community

Discussion on: Dead simple State Management with Stoxy

helloitsm3 profile image

What’s the benefit over Redux? Will this be able to replace redux or is it just another state management similar to React context?

matsuuu profile image
Matsuuu Author • Edited

The benefit over redux is the ease of entry, and a way more simplified, more concise API.

The package is about as small as the redux core, and way smaller than redux toolkit.

Stoxy also ships with persistence in mind from the get go, so you don't need to install any extra libraries to get said functionality.

What made me create the lib was the convoluted mess of reducers and setup you needed for even the simplest of state operations, which could be one-liners, like stoxy does