Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. export default class MyContainer extends Component {
  2. contructor (props) {
  3. super(props)
  4.  
  5. this.classPropertyA = 'something'
  6. this.classPropertyB = 123
  7.  
  8. this.state = {
  9. stateItemA: undefined,
  10. stateItemB: 'default string'
  11. }
  12.  
  13. this.someMethod = this.someMethod.bind(this)
  14. this.anotherMethod = this.anotherMethod.bind(this)
  15. }
  16.  
  17. someMethod () {
  18. // ...
  19. }
  20.  
  21. anotherMethod () {
  22. // ...
  23. }
  24.  
  25. render () {
  26. return (
  27. <SomeComponent />
  28. )
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement