DEV Community

Discussion on: 8 Practices In React That Will Crash Your App In The Future

Collapse
 
emma profile image
Emma Goto πŸ™

Another point to add is that using a type checker like Flow or TypeScript is super helpful in catching some of these bugs for you!

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Yea almost all of the points made in the article would be pointed out to you by the compiler if you were using TypeScript. Excellent article though! It just confirmed my bias towards type safety.

Collapse
 
alekzzz profile image
Aleksandr Strutynskyy

type errors never happen when process is correct, but types add a ton of overhead and slow down the team, and don't forget type correctness !== program correctness.

Thread Thread
 
cubiclebuddha profile image
Cubicle Buddha

Can you explain why types add overhead? And which type of overheadβ€” speed? Quality? Value?