Just rewrote a Redux app in plain React


Just rewrote a Redux app in plain React.

Here's how:
1. Moved data from Redux store to most relevant component
2. Lifted state as needed

More on lifting state: https://reactjs.org/docs/lifting-state-up.html
On this small app, I thought stripping Redux would be a slam dunk. Shedding Redux cut weight.

But:
1. Without Redux I have to pass data and funcs around more.
2. Things like routing and preloaders actually got more complicated.

Torn.

View original on X