title: How to allow only English letters in input fields?
body: <p>So, this is my input field:</p>
  
  <pre><code>&lt;input type={type} name={name} /&gt;
  </code></pre>
  
  <p>How can I allow only English letters?</p>
  
  <p>This is the <code>RegEx</code>, I believe I should use: <code>/[A-Za-z]/ig</code> </p>
  
  <p><a href="https://regex101.com/r/upWFNy/1" rel="nofollow noreferrer">https://regex101.com/r/upWFNy/1</a></p>
  
  <p>I am assuming that <code>onChange()</code> event should be used for this with the combination of <code>setState()</code> and <code>event.target.value</code>.</p>
  
  <p>Thanks.</p>
  
  <p><strong>PS. I need to have this WHILE typing.</strong></p>