title: React how click to input value?
body: <p>it's possible to click input values in react? </p>
  
  <p>so i have a input whihc i set values to array with comma: </p>
  
  <p>it's here showing how i do that: 
  <a href="https://stackoverflow.com/questions/57478084/react-redux-how-split-input-values-with-comma?noredirect=1#comment101428311_57478084">React / Redux how split input values with comma</a></p>
  
  <p>i can render my input values in jsx like that: </p>
  
  <pre><code>const listItems = this.props.Data.codes.map((item) =&gt;
    &lt;span key={index} onClick={onClick=event = () =&gt; this.somFunc(event, item)}&gt;{item}&lt;/span&gt;
  );
  </code></pre>
  
  <p>and at onClick i can get the each item so each value which i put to array from input.</p>
  
  <p>but possible to make this mapping in input ? </p>
  
  <p>so in input will be displaying my values like: </p>
  
  <pre><code>value1 value2 value3 
  </code></pre>
  
  <p>and i will be available to click them and call some function at <code>onClick</code> </p>