title: How to check If the value of an input is number or string in react js?
body: <p>I want to check if the value of a type text input is number or string like this :</p>
  <pre><code>&lt;input
    type=&quot;text&quot;
    onChange={(e) =&gt; {
    const value = e.target.value;
      console.log(typeof value);
    }}
  /&gt;
  </code></pre>
  <p>But when I type text or number it console logs string in both cases .</p>
  <p>How can I check if the value is number with input type text in react js ?</p>