Skip to content

Instantly share code, notes, and snippets.

@zuk
Created July 6, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuk/86cbde3a8822210351017cafb98546f6 to your computer and use it in GitHub Desktop.
Save zuk/86cbde3a8822210351017cafb98546f6 to your computer and use it in GitHub Desktop.
import './Foo.scss'
export default class Foo extends React.Component {
render() {
const { someProp } = this.props
return (
<div className="Foo">
...
</div>
)
}
}
Foo.propTypes = {
someProp: React.PropTypes.string.isRequired
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment