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