react-kiwi-dropdown
Version:
A minimal, easy-to-use and highly adjustable dropdown component made with ReactJS.
14 lines (11 loc) • 377 B
JavaScript
/**
* @fileoverview Prevent usage of setState in componentWillUpdate
* @author Yannick Croissant
*/
;
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
const versionUtil = require('../util/version');
module.exports = makeNoMethodSetStateRule(
'componentWillUpdate',
context => versionUtil.testReactVersion(context, '16.3.0')
);