Skip to content

Commit

Permalink
Use onInput instead of onChange in the README example (#3420)
Browse files Browse the repository at this point in the history
The preact documentation recommends it.
  • Loading branch information
matthiask committed Jan 19, 2022
1 parent fcedde5 commit 2af05f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const App = () => {
return (
<div>
<p>Do you agree to the statement: "Preact is awesome"?</p>
<input value={input} onChange={e => setInput(e.target.value)} />
<input value={input} onInput={e => setInput(e.target.value)} />
</div>
)
}
Expand Down

0 comments on commit 2af05f5

Please sign in to comment.