I am learning reactjs and I see many people write, for example
class Trees extends Component {
render() {
const { plantTrees } = this.props;
return( ...
I want to know why use const {} = this.props
? Is there any benefit to using it? what is the purpose of initializing the const variable inside the render function?