Answers for "why do we import with curly brackets in react"

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 "why do we import with curly brackets in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language