3 ms·
I very strongly disagree with this. Typescript is a lifesaver on a non-trivial React codebase. Writing correct code is hard and you need every advantage you can
by cageface 4y ago
I very strongly disagree with this. Typescript is a lifesaver on a non-trivial React codebase. Writing correct code is hard and you need every advantage you can muster. Type checking is an important part of that.
- ricardobayes 4y agoLook into nullish coalescing and optional chaining. Sure, vanilla JS or react doesn't help with using a var as a function, but I can probably count on my left hand how many times I tried to do that. That doesn't warrant a completely new language. ps.: typeof is also a thing in vanilla JS
- cageface 4y agoI have been writing TS all day every day for the last 5 years. I'm aware of null coalescing and optional chaining. Every time people tell me "I just don't make type errors" I look through their issue tracker and find them everywhere.
- blaydator 4y agoTotally agree, for non trivial project it totally makes sens, but for hobby project it doesn’t always make sens. Even less for beginners like OP.