Redux const { var1, var2 } = this.props;

Viewed 8798

I am new to react js. I am working on a project and found this line

 const { var1, var2 } = this.props;  

Props which are comming in this component are

type PropsType = {
  var1: Array<any>,
  a: Array<any>,
  b: boolean,
  c: boolean,
  var2: (string) => void,
  d: () => void,
  e: () => void
};  

I am confused. What it means?

3 Answers
Related