Regarding a lint code validation error:
error Must use destructuring props assignment react/destructuring-assignment
I am new to the concept of destructuring properties and I am a bit confused about how I am supposed to use a destructing approach to the following code:
constructor(props) {
super(props);
this.state = {
clickedFirstTime: !this.props.showDefault,
};
}
Note to other people finding this on Google, I have read the following resources to help me understand what destructuring was, but I am just unable to figure out how to do it in this case: