no-did-mount-set-state.js 260 B

12345678910
  1. /**
  2. * @fileoverview Prevent usage of setState in componentDidMount
  3. * @author Yannick Croissant
  4. */
  5. 'use strict';
  6. const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
  7. module.exports = makeNoMethodSetStateRule('componentDidMount');