first commit
This commit is contained in:
11
node_modules/eslint-plugin-react/lib/rules/no-did-update-set-state.js
generated
vendored
Normal file
11
node_modules/eslint-plugin-react/lib/rules/no-did-update-set-state.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @fileoverview Prevent usage of setState in componentDidUpdate
|
||||
* @author Yannick Croissant
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
|
||||
|
||||
/** @type {import('eslint').Rule.RuleModule} */
|
||||
module.exports = makeNoMethodSetStateRule('componentDidUpdate');
|
||||
Reference in New Issue
Block a user