Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active June 29, 2017 08:12
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 Jahans3/22f5ee25572a5e8d0f3a05984c804cce to your computer and use it in GitHub Desktop.
Save Jahans3/22f5ee25572a5e8d0f3a05984c804cce to your computer and use it in GitHub Desktop.
export default class MyContainer extends Component {
contructor (props) {
super(props)
this.classPropertyA = 'something'
this.classPropertyB = 123
this.state = {
stateItemA: undefined,
stateItemB: 'default string'
}
this.someMethod = this.someMethod.bind(this)
this.anotherMethod = this.anotherMethod.bind(this)
}
someMethod () {
// ...
}
anotherMethod () {
// ...
}
render () {
return (
<SomeComponent />
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment