Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 401 Bytes

06-destructuring-props.md

File metadata and controls

7 lines (5 loc) · 401 Bytes

Destructuring Props

Destructuring is a concept that does not belong to React, but to JavaScript. It allows you to extract values from an object, and assign them to variables.

For example you can create a const variable, and use object destructuring to extract the values from the object. Rather than that approach, you can do that by using the curly braces, and then specifying the variable names.