()
| 37 | this._change = this._handleInputChange.bind(this); |
| 38 | } |
| 39 | render() { |
| 40 | return ( |
| 41 | <input |
| 42 | type='text' |
| 43 | defaultValue={ this.state.value } |
| 44 | onChange={ this._change } |
| 45 | ref={ input => this.input = input }/> |
| 46 | ); |
| 47 | } |
| 48 | _handleInputChange() { |
| 49 | console.log(this.input.value); |
| 50 | this.setState({ value: this.input.value }); |
no outgoing calls
no test coverage detected