SyntaxFix
Write A Post
Hire A Developer
Questions
it works:
type HtmlEvent = React.ChangeEvent<HTMLSelectElement> const onChange: React.EventHandler<HtmlEvent> = (event: HtmlEvent) => { console.log(event.target.value) }