Assignment5_new/node_modules/eslint-plugin-react/lib/util/lifecycleMethods.js

31 lines
611 B
JavaScript
Raw Normal View History

2025-01-07 05:14:59 +00:00
/**
* @fileoverview lifecycle methods
* @author Tan Nguyen
*/
'use strict';
module.exports = {
instance: [
'getDefaultProps',
'getInitialState',
'getChildContext',
'componentWillMount',
'UNSAFE_componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'UNSAFE_componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'UNSAFE_componentWillUpdate',
'getSnapshotBeforeUpdate',
'componentDidUpdate',
'componentDidCatch',
'componentWillUnmount',
'render',
],
static: [
'getDerivedStateFromProps',
],
};