DEV Community

Cover image for Destructure & Spread operator, Learn it now!
Ganeshakumar K
Ganeshakumar K

Posted on • Edited on

1 1

Destructure & Spread operator, Learn it now!

Destructure is a beautiful ES6 standard which gives convenient way for a programmer to access the values from object or an array. People forget to use this and end up in bad programming habits in Javascript or React famliy.

Let's see where and all we can use destructure

  1. Functional Component
  2. Class component
  3. Array Destructure
  4. Spread Operator
    • Array and object spread

Watch the below video which is explained in a beautiful way.

Top comments (1)

Collapse
 
ganeshakumar profile image
Ganeshakumar K

Anyone still not using ES6 standards?

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay