title: React js: How to set props in JSX components which store in variable
body: <p>Suppose I already define an component:</p>
  
  <pre><code>class Co extends React.Component {
      render = () =&gt; {
          const name = this.props.name;
          return (
              &lt;p&gt;Hello, my name is {name}&lt;/p&gt;
          )
      }
  }
  </code></pre>
  
  <p>and store it in an variable:</p>
  
  <pre><code>const co = &lt;Co /&gt;;
  </code></pre>
  
  <p>How can I set the component's props with the variable? Would <code>co.props.set</code> work?</p>