Use defaultProps
Play video: Use defaultProps - Get started
- Declare function components
- Define components with arrow functions
- Use props
- 👉Use defaultProps
- Use propTypes
- Use object rest properties and jsx spread attributes
- Use destructuring assignment
- Use dynamic tagNames
- Use ref callbacks | Functional Components