PromoCursed/node_modules/eslint-plugin-react/lib/rules/no-did-mount-set-state.js
2024-08-20 23:25:37 +04:00

12 lines
308 B
JavaScript

/**
* @fileoverview Prevent usage of setState in componentDidMount
* @author Yannick Croissant
*/
'use strict';
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
/** @type {import('eslint').Rule.RuleModule} */
module.exports = makeNoMethodSetStateRule('componentDidMount');