DEV Community

Discussion on: React PropTypes vs Typescript! Any experience?

Collapse
 
vytch profile image
vytch • Edited

I haven't thought about using typescript in react. While prop types and typescript seem to be doing the same thing, typescript also supports interfaces.

By defining interfaces you can ensure that some components will not miss the props that they need.