title: Why should I use the spread operator in React Route?
body: <p>So I am watching a tutorial where instructor uses {...props} inside a route. Why would he use it if he is already passing user and getUser props?:</p>
  
  <pre><code>&lt;Route exact path="/user/:login" render={props =&gt; (
     &lt;User {...props} getUser={this.getUser} user={user} /&gt;
    )}
  /&gt;
  </code></pre>
  
  <p>Btw, In the User.js, where those props are being passed to, he uses:
  this.props.getUser(this.props.match.params.login). Is it possible it has something to do with this?</p>