Skip to content

Commit

Permalink
[facebook#3964] Add note about React's onChange vs. DOM's oninput
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Savvides committed Jun 2, 2015
1 parent 54e3f12 commit 8e01da8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/07-forms.md
Expand Up @@ -28,6 +28,10 @@ Form components allow listening for changes by setting a callback to the `onChan

Like all DOM events, the `onChange` prop is supported on all native components and can be used to listen to bubbled change events.

> Note:
>
> `onChange` supersedes - and should generally be used instead of - the DOM's built-in [`oninput`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/oninput) event handler.

## Controlled Components

Expand Down

0 comments on commit 8e01da8

Please sign in to comment.