Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved wording in README.md #293

Merged
merged 2 commits into from
Aug 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ npm install redux-thunk

## Note on 2.x Update

Most tutorials today assume Redux Thunk 1.x so you might run into an issue when
running their code with 2.x.
**If you use Redux Thunk 2.x in CommonJS environment,
Most tutorials today assume that you're using Redux Thunk 1.x. You may run into
issues when you run their code with 2.x. **If you use Redux Thunk 2.x in
CommonJS environment,
[don’t forget to add `.default` to your import](https://github.com/reduxjs/redux-thunk/releases/tag/v2.0.0):**

```diff
Expand All @@ -40,7 +40,7 @@ As you can see, it also requires `.default` at the end.
## Why Do I Need This?

With a plain basic Redux store, you can only do simple synchronous updates by
dispatching an action. Middleware extend the store's abilities, and let you
dispatching an action. Middleware extends the store's abilities, and lets you
write async logic that interacts with the store.

Thunks are the recommended middleware for basic Redux side effects logic,
Expand Down