Skip to content

Commit c54bd20

Browse files
authored
Update react.md
1 parent 57360a2 commit c54bd20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/jsx/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class FocusingInput extends React.Component<{ value: string, onChange: (value: s
183183
<input
184184
ref={(input) => this.input = input}
185185
value={this.props.value}
186-
onChange={(e) => { this.props.onChange(this.input.value) } }
186+
onChange={(e) => { this.props.onChange(e.target.value) } }
187187
/>
188188
);
189189
}

0 commit comments

Comments
 (0)