()
| 8 | this._onPasswordChanged = this._onFieldChange.bind(this, 'password'); |
| 9 | } |
| 10 | render() { |
| 11 | return ( |
| 12 | <form> |
| 13 | <input onChange={ this._onNameChanged } /> |
| 14 | <input onChange={ this._onPasswordChanged } /> |
| 15 | </form> |
| 16 | ); |
| 17 | } |
| 18 | _onFieldChange(field, event) { |
| 19 | console.log(`${ field } changed to ${ event.target.value }`); |
| 20 | } |
no outgoing calls
no test coverage detected