Created
May 18, 2017 05:48
-
-
Save moonformeli/be4ef1501b018594bb7c0009b238d950 to your computer and use it in GitHub Desktop.
defaultProps_MyComponent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyComponent extends React.Component { | |
render() { | |
// ... | |
} | |
} | |
MyComponent.defaultProps = { | |
items: [] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment