title: how to get value in dynamic text input in react.js?
body: <p>I made one page in react.js project that has a text input and a button for each row of data.
  I want to get each input value by on click button and do process over it.</p>
  <pre><code>       {data.map((item, index) =&gt; &lt;div&gt;&lt;span&gt;{item}&lt;/span&gt;
                      &lt;input type=&quot;text&quot; placeholder='enter value' /&gt;
                      &lt;button onClick={() =&gt; {alert(inputValue) }}&gt;
                          click me
                      &lt;/button&gt;
  
                  &lt;/div&gt;
                  )}
  </code></pre>