web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
380 B

  1. /**
  2. * @fileoverview Prevent usage of setState in componentWillUpdate
  3. * @author Yannick Croissant
  4. */
  5. 'use strict';
  6. const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
  7. const versionUtil = require('../util/version');
  8. module.exports = makeNoMethodSetStateRule(
  9. 'componentWillUpdate',
  10. (context) => versionUtil.testReactVersion(context, '16.3.0')
  11. );