This course will be retired on March 1, 2023. We recommend "React Components" for up-to-date content.
Static PropTypes and Default Props3:44 with Guil Hernandez
In class components, it's common to define
propTypes inside the class with the
static keyword. You can also set a default value for your props, with a
You need to sign up for Treehouse in order to download course files.Sign up