The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.
Destructuring means to break down a complex structure into simpler parts. With the syntax of destructuring, you can extract smaller fragments from objects and arrays. It can be used for assignments and declaration of a variable.
Destructuring saves you time and lines of code. One line accomplishes what 2 or 10 lines of code do. Specifically for React destructuring helps you keep your code DRY (Don't Repeat Yourself).
Destructuring Variable / Assignment are including:
Object and nested object destructuring
Object destructuring by using function. Retrieves a field in an object, after it is passed as a parameter to a function. Including .map method to destructure an object.