title: How to detect changes in form and set new state?
body: <p>I have HTML form with set of elements(inputs).</p>
  
  <p>So, how to detect changes in any input and set new statement in object <code>var data</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;input type="text" name="parameter" value="30"&gt;
  </code></pre>
  
  <p>When I make chnages in input I need to get output object <code>data</code> as:</p>
  
  <pre><code>var = data = ["paraeter" : 30];
  </code></pre>