title: Type 'void' is not assignable to type '((event: ChangeEvent<HTMLInputElement>) => void) React TypeScript
body: <p>Im a beginner in React Typescript, and I have defined some props is a <strong>.JS</strong> file that I want to use in a <strong>.tsx</strong> file. but I receive this error on one of my TypeScript lines:</p>
  
  <pre><code> &lt;MyTextField style={{width:'60%'}}  name='ActivationDate' type='date' defaultValue={values1.ActivationDate} onChange={handleChange('ActivationDate')}/&gt;
  </code></pre>
  
  <pre><code>Type 'void' is not assignable to type '((event: ChangeEvent&lt;HTMLInputElement&gt;) =&gt; void) | ((event: ChangeEvent&lt;HTMLSelectElement&gt;) =&gt; void) | ((event: ChangeEvent&lt;HTMLTextAreaElement&gt;) =&gt; void) | undefined'.
  </code></pre>
  
  <p>The CodeSandbox contains both my JS file and TSX file :
  <a href="https://codesandbox.io/s/tsx-rj694" rel="noreferrer">https://codesandbox.io/s/tsx-rj694</a></p>
  
  <p>what seems to be the problem and how can I write this correctly?</p>