TypeScript React: Patterns & Pitfalls
Your React code compiles. But now TypeScript is yelling at you like:
“You can’t assign a string to a number!”
“This might be null!”
“This property doesn’t exist on type ‘never’!”
You try to fight back… by slapping as any everywhere.
Let’s fix that....
usefaiaz.hashnode.dev6 min read