title: How to give the String value to the parameter in OnChange in React?
body: <p>I have a component that has an input tag called StandardInput.</p>
  <p>At this time, when onChange is triggered, I want to execute the LsonChangefunc function, put a string value in the lstandtime1 state, and give a string value called Distinction as a parameter. So I want to run the condition according to the value of the distinction.</p>
  <pre><code>An argument for 'Distinction' was not provided.
  </code></pre>
  <p>How should I fix my code?</p>
  <p>this is my code</p>
  <pre><code>const [lstandtime1, setLstandtime1] = useState('');
  
  const LsonChangefunc = (e, Distinction) =&gt; {
    e.preventDefault();
    if (Distinction === &quot;number1&quot;) {
      setLstandtime1(e.target.value) 
    }
  
  }
  
  return (
    &lt;StandardInput
      value={lstandtime1}
      onChange={() =&gt; LsonChangefunc(&quot;number1&quot;)}
    /&gt;
  )
  </code></pre>