If you have a object with keys and values, you can destructure it into several key = value variables.
Example
const props = {
  a : 20,
  b : 30
}
 
const {a,b} = props;
 
console.log(a) // 20
console.log(b) // 30If you have a object with keys and values, you can destructure it into several key = value variables.
const props = {
  a : 20,
  b : 30
}
 
const {a,b} = props;
 
console.log(a) // 20
console.log(b) // 30