4 ms·
I've been developing small scale react applications since 2015. Application state has seldom been a problem for me. Initially classes were a problem as they ma
by timdaub 5y ago
I've been developing small scale react applications since 2015. Application state has seldom been a problem for me.
Initially classes were a problem as they made unit testing harder. I'm happy react moved towards functional logic.
Integration tests were hard because there was no good one-stop-shop framework. I now use cypress and it's OK.
Tooling was hard as there was a bazillion options and nothing stood out. I now use esbuild. It's pretty good.
I once made the mistake to use redux to fix a problem I didn't have, namely handling application state. Then I tried MobX.
These days, I mostly use component state and a REST api. For reusable components, I create an npm lib. Whatever.