How can I define TypeScript type for a setState function when React.Dispatch> not accepted?

前端 未结 0 763
野性不改
野性不改 2021-01-21 15:53

I have a React DatePicker component with an input element. In order to handle the onChange event I have onChangeHandler function defined. However, when I want to define the type

相关标签:
回答
  • 消灭零回复
提交回复
热议问题