Skip to content

Instantly share code, notes, and snippets.

@codeocelot
Last active October 15, 2016 23:10
Show Gist options
  • Save codeocelot/2837bf3e7b533bc68abcfc62eb0701b9 to your computer and use it in GitHub Desktop.
Save codeocelot/2837bf3e7b533bc68abcfc62eb0701b9 to your computer and use it in GitHub Desktop.
const Greeting = (props,context) => <p style={context.style}>Hello World</p>
Greeting.contextTypes = {
color: React.PropTypes.string,
backgroundColor: React.PropTypes.string,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment