DEV Community

loading...

Discussion on: 😲🀯The most outstanding new feature in Javascript you need to know about: Optional Chaining

Collapse
michi profile image
Michael Z

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.

Collapse
georgecoldham profile image
George

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.

Collapse
lampewebdev profile image
Michael "lampe" Lazarski Author

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. πŸ˜€πŸ™Œ