Answers for "react when to use curly brackets for import"

0

what are the used of curly brackets in react functions

const destructuring = ({ used }) => console.log(used);
    
const properties = {
  unused: 1,
  used: 2,
};

destructuring(properties); // 2
Posted by: Guest on November-17-2020

Code answers related to "react when to use curly brackets for import"

Code answers related to "Javascript"

Browse Popular Code Answers by Language