DEV Community

Discussion on: React PropTypes vs Typescript! Any experience?

Collapse
 
prashantandani profile image
Prashant Andani

To add up... I would say both serve different purposes, Interfaces in Typescript helps validate in compile-timewhereas PropTypes helps to validate in 'Run-Time

Collapse
 
elugens profile image
Stacey Wilson

Perfect answer...