1. optional static methods
  2. constructor
  3. getChildContext
  4. componentWillMount
  5. componentDidMount
  6. componentWillReceiveProps
  7. shouldComponentUpdate
  8. componentWillUpdate
  9. componentDidUpdate
  10. componentWillUnmount
  11. clickHandlers or eventHandlers like onClickSubmit() or onChangeDescription()
  12. optional render methods like or renderProfilePicture()
  13. render
  • Ordering for React.createClass: eslint:

  1. displayName
  2. propTypes
  3. contextTypes
  4. childContextTypes
  5. mixins
  6. statics
  7. defaultProps
  8. getChildContext
  9. componentWillMount
  10. componentDidMount
  11. componentWillReceiveProps
  12. shouldComponentUpdate
  13. componentWillUpdate
  14. componentDidUpdate
  15. componentWillUnmount
  16. clickHandlers or eventHandlers like onClickSubmit() or onChangeDescription()
  17. getter methods for render like getSelectReason() or getFooterContent()