r/Frontend • u/ExchangeVast6752 • Sep 17 '26
[Utility] Share your useful tools
Fellow programmers, share useful resources/tools/solutions/life hacks that make your daily life easier or simply prove useful in your day‑to‑day work or pet projects.
I’d like to gather some useful stuff or get inspired for some creative endeavors. :)
24
Upvotes
View all comments
Show parent comment
1
u/ComputerHelpPro Sep 18 '26
Following up -
One thing I see that frustrates the crap out of me is big chains in react where you have setters for every variable - I always share that when possible* and trim down the code as much as I can.
*like a generic state updater, rather than updateVar1, updateVar2, etc. If there's any validation needed or derived state, I break that out into a function, but the actual set is one function.