// @flow import * as React from 'react'; import autobind from 'autobind-decorator'; type Props = { indeterminate: boolean, checked: boolean, }; @autobind class IndeterminateCheckbox extends React.PureComponent { input: ?HTMLInputElement; _setRef(n: ?HTMLInputElement) { this.input = n; } _update() { if (this.input) { this.input.indeterminate = this.props.indeterminate; } } componentDidMount() { this._update(); } componentDidUpdate() { this._update(); } render() { const { indeterminate, // eslint-disable-line no-unused-vars ...otherProps } = this.props; return ; } } export default IndeterminateCheckbox;