3 ms·
TypeScript has been very helpful in our react projects. There isn't much clutter, as usually the only types you define are props and state – things you want to
by simplify 8y ago
TypeScript has been very helpful in our react projects. There isn't much clutter, as usually the only types you define are props and state – things you want to know anyway.
TypeScript doesn't prevent any bugs that tests would not, but it does so faster and more concisely.
Tooling slowdown depends on your tooling setup; TypeScript can compile JSX on its own.
PropTypes are useful if you're transitioning from a plain JS codebase. But if you can start with and go full TS, I highly recommend going that route.