I'm updating a client's React component library
I'm updating a client's React component library. I'm converting old class-based demos to use functions with Hooks.
It's striking how much of this task involves hitting the delete key!
So. much. less. code. 🎉 🔥😀
#reactjs
Other improvements:
- Replacing imperative for loops with modern, declarative alternatives such as filter and find.
- Replacing named imports with direct imports to reduce bundle size.
- Replacing LoDash usage with native JS calls.
All adds up to simpler, leaner code. 💪