title: React, change const to component with props
body: <p>React,</p>
  
  <p>Hello i need change const for component with props.</p>
  
  <p>How can i do it?</p>
  
  <pre><code>const renderFieldOne = ({ input, label, type, meta: { touched, error, warning } }) =&gt; (
    &lt;div&gt;
      &lt;div className ="group"&gt;
        &lt;input className="text"
        {...input}
        type={type}/&gt;
        &lt;label&gt;{label}&lt;/label&gt;
        &lt;span className="highlight"&gt;&lt;/span&gt;
        &lt;span className="bar"&gt;&lt;/span&gt;
        {touched &amp;&amp; ((error &amp;&amp; &lt;span&gt;{error}&lt;/span&gt;) || (warning &amp;&amp; &lt;span&gt;{warning}&lt;/span&gt;))}
      &lt;/div&gt;
    &lt;/div&gt;
  )
  </code></pre>