Last active
June 29, 2017 08:12
-
-
Save Jahans3/22f5ee25572a5e8d0f3a05984c804cce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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