no-did-update-set-state.js 262 B

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