title: Using an Array of buttons in React
body: <p>In react I have a code like this:</p>
  
  <pre><code> var myButtons=[];
   /*Products is an array of objects where each object identify a product*/
   for (var p of Products) {
       var button = &lt;button 
                         style={someStyle}
                         onClick={onClickFunction}&gt;
                         p.name
                    &lt;/button&gt;
       myButtons.push(button)
   }
  </code></pre>
  
  <p>I will use this react array of buttons on a render command. The problem I have is that I do not know how to make one of these buttons to show its label p.name through the onClickFunction. </p>