Skip to content

Commit 30540a9

Browse files
author
Evgeny Samsonov
committed
Fix docs, response instead of req in ExampleRedditAPI.md
1 parent 12371ed commit 30540a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced/ExampleRedditAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function fetchPosts(subreddit) {
6565
return dispatch => {
6666
dispatch(requestPosts(subreddit))
6767
return fetch(`http://www.reddit.com/r/${subreddit}.json`)
68-
.then(req => req.json())
68+
.then(response => response.json())
6969
.then(json => dispatch(receivePosts(subreddit, json)))
7070
}
7171
}

0 commit comments

Comments
 (0)