propTypes and defaultProps are static properties, declared as high as possible within the component code.
Our Best Practices for Writing React Components
Scott Domes

Typo: *whereas

Like what you read? Give Adam Donahue a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.