DEV Community

loading...

Discussion on: State Management with a Single Line of Code

Collapse
fly profile image
joon

So yesterday I was feeling fed up with setting up redux and realizing
that the whole process was going to be a pain when I just needed simple
global state functionality.
Instead of the obvious 'searching for a good alternative' I just went and wrote a single file version instead.

gist.github.com/fl-y/dc500f0841fd1...

Quite pleased with myself,
on my way to work while scrolling through dev.to I noticed this gem.
I feel like this is pretty much what my prototype would have become with a LOT of hard work(But probably multitudes worse).
I sincerely thank you for sharing this project.

Going to try this out straight away :)