import React, {Component, PropTypes} from 'react'; import {debounce} from '../../../common/misc'; class DebouncedInput extends Component { _handleValueChange = debounce(this.props.onChange, 500); _handleChange = e => this._handleValueChange(e.target.value); render () { // NOTE: Strip out onChange because we're overriding it const {onChange, textarea, ...props} = this.props; if (textarea) { return (