lifecycleMethods.js 611 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @fileoverview lifecycle methods
  3. * @author Tan Nguyen
  4. */
  5. 'use strict';
  6. module.exports = {
  7. instance: [
  8. 'getDefaultProps',
  9. 'getInitialState',
  10. 'getChildContext',
  11. 'componentWillMount',
  12. 'UNSAFE_componentWillMount',
  13. 'componentDidMount',
  14. 'componentWillReceiveProps',
  15. 'UNSAFE_componentWillReceiveProps',
  16. 'shouldComponentUpdate',
  17. 'componentWillUpdate',
  18. 'UNSAFE_componentWillUpdate',
  19. 'getSnapshotBeforeUpdate',
  20. 'componentDidUpdate',
  21. 'componentDidCatch',
  22. 'componentWillUnmount',
  23. 'render',
  24. ],
  25. static: [
  26. 'getDerivedStateFromProps',
  27. ],
  28. };