{ showValue: props.value }; } render() { return( <input type="text" value={this.state.showValue} onChange={this.handleChange.bind(this)} onBlur={this.handleBlur.bind(this)} /> ); } componentWillReceiveProps(props) { const element = ReactDOM.findDOMNode(this); if (element !== document.activeElement) { this.setState({ showValue: props.value}); } } ͞ΕͨQSPQTΛTUBUFʹίϐʔ දࣔʹTUBUFͷ΄͏Λ͏ ϑΥʔΧεͯ͠ͳ͍࣌ͷ
QSPQTͷมԽදࣔʹଈ࣌ө