Menu

Close
Subscribe
  Subscribe

Thunk

Jan 21, 2017

Thunk middleware for Redux.

Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters.

  • Introduction to thunks in Redux
  • GitHub.com/gaearon/redux-thunk
  • Example: Reddit API

Share this post

Twitter Facebook Pinterest Google+

Data to React App

Gosha Arinich