Skip to content

Instantly share code, notes, and snippets.

@tomatau
Created March 26, 2015 19:31
Show Gist options
  • Save tomatau/feb62909fc77a1fc9a02 to your computer and use it in GitHub Desktop.
Save tomatau/feb62909fc77a1fc9a02 to your computer and use it in GitHub Desktop.
Reusable Components
propTypes: {
onClickItem: React.PropTypes.func.isRequired,
inputs: React.PropTypes.arrayOf(
React.PropTypes.shape({
text: React.PropTypes.node
})
)
},
getDefaultProps(){
return { inputs: [] }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment