Skip to content

Commit deb64ee

Browse files
committed
typo
1 parent cc7fed3 commit deb64ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/api/mixins/AsyncState.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ var User = React.createClass({
8181
activity: {}, // an immediate value (not a promise)
8282
stream: getStreamingData(params.userID, function (chunk) {
8383
// `getStreamingData` returns a promise, but also calls back as
84-
// data is received, giving use a chance to update the UI with
85-
// progress
84+
// data is received, giving us a chance to update the UI with
85+
// progress using the `AsyncState` specific `setState`
86+
// function
8687
buffer += chunk;
8788
setState({ streamBuffer: buffer });
8889
})

0 commit comments

Comments
 (0)