This video is available to students only

Prop-types and TypeScript

When developing with TypeScript you will often see teams stop using PropTypes for runtime prop validation. TypeScript does an excellent job of enforcing prop constraints for other TypeScript consumers, but our library may be consumed by both TypeScript and JavaScript codebases.

To ensure that all consumers have prop validation we will be including PropTypes for our components.

Include prop-types#

No discussions yet