What is Destructuring?
Destructuring shown assigns properties of an object to variables of the same name. There is also a longhand syntax that allows you to assign to variables of different names.
Destructuring works with nested objects, with arrays, and can be used in variable declarations, function return values and function arguments.
#
For exampleWithout destructuring.
Destructuring the objects this.props
and this.state
.