What are the recommended ways for static type checking?

Technology CommunityCategory: ReactWhat are the recommended ways for static type checking?
VietMX Staff asked 3 years ago

Normally we use PropTypes library( React.PropTypes moved to a different package since React15.5) for TypeChecking in the ReactJS applications. For large code bases, it is recommended to use static type checkers such as Flow or TypeScript to find out problems before run the code and provides auto-completion feature.