SyntaxFix
Write A Post
Hire A Developer
Questions
Here is the simple approach I used:
const element = event.currentTarget as HTMLInputElement const value = element.value
The error shown by TypeScript compiler is gone and the code works.