Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
how can define double type to onChange Event param

im using React onChange in input tag. and i faced problem about type definication.

look this code

  onChange?: (e: ChangeEvent<HTMLInputElement> | SeperationChangeEvent) => void;

and im using like this

const Foo = () => {
 const handleChange = (e : ChangeEvent<HTMLInputElement>) => {}
 return <Input onChange={handleChange}/>
}

below error pic how can i solve this problem?

enter image description here

almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

React exports its own ChangeEvent that is different than the built in one.

const Foo = () => {
  const handleChange = (e : React.ChangeEvent<HTMLInputElement>) => {}

  return <Input onChange={handleChange}/>
}

almost 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!