@colinhacks ("Colin McDonnell") retweeted:
@alexdotjs ("Alex / KATT 🐱") wrote:
I'm glad destucturing exists but it's def overused.
If you only use a prop once, all you're doing by destructing it is to add extra code, make discoverability of what else is on the object harder and add indirection on where the variable comes from.
Don't destruct in args, plz
with quote tweet:
@buildsghost ("Hot Jamie Kyle 🏳️🌈") wrote:
I wish JavaScript never got destructuring, because it’s so overused. I’m so tired of people ripping apart objects and putting them back into slightly different shapes for no reason. Poorly defined data structures and options/props bags everywhere