What is Redux Thunk used for?

Technology CommunityCategory: ReactWhat is Redux Thunk used for?
VietMX Staff asked 3 years ago

Redux thunk is middleware that allows you to write action creators that return a function instead of an action. The thunk can then be used to delay the dispatch of an action if a certain condition is met. This allows you to handle the asyncronous dispatching of actions.