title: "React js" How to pass array data using props?
body: <pre><code>render() {
     const Array = this.props.students.map((data) =&gt; {
        return (
           &lt;button 
             key={data.name}
             //key={data.birthDate}
             //key={data.age}
             //key={data.class}
           &gt;{data.name}&lt;/button&gt;
        );
     });
  
     return (
       &lt;div&gt;
         {Array}
         &lt;StudentInfo name = {"Amira"}/&gt;
       &lt;/div&gt; 
     );
  }
  </code></pre>
  
  <p>This is my code. Currently I'm trying to pass array data from that <code>&lt;button&gt;&lt;/button&gt;</code> into <code>&lt;StudentInfo /&gt;</code> and replace the <code>name = {"Amira"}</code>
  Can anyone help me with this?</p>
  
  <p>Thank you.</p>