MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / render

Method render

code/controlled-uncontrolled/src/app.jsx:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 });

Callers 6

app.jsFile · 0.45
finishClassComponentFunction · 0.45
lFunction · 0.45
CgFunction · 0.45
app.jsxFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected