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