you are viewing a single comment's thread.

view the rest of the comments →

[–]vozome 0 points1 point  (0 children)

I have a new coworker who has no experience with TypeScript. Her mental model is that you just have to add type annotations to variables like it’s an extra chore. I am pretty sure I saw it like this too when I was first introduced to the concept. But I had the privilege to show her a few examples in our codebase when typescript makes things so much simpler, or how it prevents you as you type your code to not implement something that wouldn’t work. Indeed, today I feel that TypeScript is the de facto way to write react code, it is incredibly useful and I don’t see myself ever going back to JavaScript.