Not setting defaultProps for components
Proper Component Prop Handling with defaultProps While defaultProps has been a longstanding React feature, its usage patterns and best practices have evolved. Here’s how to properly handle default props in….