Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upsupport defaultProps #72
Closed
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Components should favor React's
defaultPropssyntax to specify the default value for multi-value props. Otherwise, we scatter assumptions through the code with variousif (props.myProp === 'first') { ... } else { ... }which may mismatch.