Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 />
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement