When you need to use a single value that is passed in from an object and pass the whole object on.... No, props.value is fine, why am I being made to destructure and rebuild/copy my object just to use a single property.
There will be a phase where you see it everywhere like with spreading but after a short time it will lose its novelty and people will use it more when it's needed. ππ
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
I hope it won't be overused like destructuring. I can already see the linting rules that dictate you have to use this 100% when working with objects.
Ooft, pet peeve right here.
When you need to use a single value that is passed in from an object and pass the whole object on.... No,
props.value
is fine, why am I being made to destructure and rebuild/copy my object just to use a single property.There will be a phase where you see it everywhere like with spreading but after a short time it will lose its novelty and people will use it more when it's needed. ππ