what are the used of curly brackets in react functions

Solutions on MaxInterview for what are the used of curly brackets in react functions by the best coders in the world

showing results for - "what are the used of curly brackets in react functions"
Marco
01 Apr 2017
1const destructuring = ({ used }) => console.log(used);
2    
3const properties = {
4  unused: 1,
5  used: 2,
6};
7
8destructuring(properties); // 2