1 Comment
User's avatar
Denis Čahuk's avatar

I have to say the key distinction here is that you need to actually learn Typescript. Treating it as javascript + JSDoc is where beginners get stuck on.

TS is very verbose for beginners, creating a lot of any-type traps. Learn the utility types, learn the react utility types. Learn how to create types from external libraries. Give namespaces a go. Learn the difference between type and interface. And try not to overuse generics.

Expand full comment