Skip to content

Commit 767391c

Browse files
committed
Wording tweaks
1 parent ea82dba commit 767391c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/docs/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ var CommentForm = React.createClass({
483483

484484
#### Events
485485

486-
React attaches event handlers to components using a camelCase naming convention. We attach an onSubmit handler to the form that clear the form fields if the user has entered text in both.
486+
React attaches event handlers to components using a camelCase naming convention. We attach an onSubmit handler to the form that clears the form fields when the form is submitted with valid input.
487487

488488
`React.autoBind()` is a simple way to ensure that a method is always bound to its component. Inside the method, `this` will be bound to the component instance.
489489

0 commit comments

Comments
 (0)