first commit
This commit is contained in:
30
node_modules/eslint-plugin-react/lib/util/lifecycleMethods.js
generated
vendored
Normal file
30
node_modules/eslint-plugin-react/lib/util/lifecycleMethods.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* @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',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user