mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #6059 from jimfb/tutorial-children-callback
Clearify callback text in the tutorial
This commit is contained in:
commit
efa8624eb9
1 file changed
+1
-1
@@ -620,7 +620,7 @@ var CommentBox = React.createClass({
|
||||
});
|
||||
```
|
||||
|
||||
Let's call the callback from the `CommentForm` when the user submits the form:
|
||||
Now that `CommentBox` has made the callback available to `CommentForm` via the `onCommentSubmit` prop, the `CommentForm` can call the callback when the user submits the form:
|
||||
|
||||
```javascript{19}
|
||||
// tutorial19.js
|
||||
|
||||
Reference in new issue
Block a user