DEV Community

Discussion on: Can React state management get any simpler than this?

Collapse
appurist profile image
Paul / Appurist

As a fun project I tried to make the simplest reactive state, came up with this:
codepen.io/appurist/pen/QWdWzag?ed...

It too might be useful for others trying to avoid more complex framework state management.

I think it's quite a bit simpler, supports any types including subfields deeply nested within objects.

There's a more advanced example here:
github.com/appurist/reactivator/wi...
but if you look at the output, you'll see how capable it is (yet so simple to use).

Collapse
appurist profile image
Paul / Appurist

Simpler example with a reactive state object here:
github.com/appurist/reactivator/wi...