React PropTypes: Static, Default, and what it all means
You may have seen a couple of different ways to handle React PropTypes.
- You've seen declarations of propTypes/PropTypes including "static proptypes" and "default proptypes."
- You've seen declarations of propTypes/PropTypes inside or outside of the class.
- These set a default value for PropTypes.
- Recall also that you can simply use initialization in the component itself (in the inherent little "constructor" that React functional components tend to have, e.g.