Last active
July 7, 2016 13:42
-
-
Save kazagkazag/164518f80eafc2b4142e006ef12be65e to your computer and use it in GitHub Desktop.
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 Component { | |
render() { | |
return <main>Awesome component</main>; | |
} | |
} | |
MyComponent.propTypes = { | |
count: PropTypes.number.isRequired, | |
items: PropTypes.arrayOf( | |
PropTypes.shape({ | |
id: PropTypes.number, | |
title: PropTypes.string, | |
isRegisterd: PropTypes.bool | |
}) | |
) | |
}; | |
MyComponent.defaultProps = { count: 0 }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment