Why thunk is used in react?

Redux Thunk is a middleware that allows you to call the action creators that return a function(thunk) which takes the store’s dispatch method as the argument and which is afterwards used to dispatch the synchronous action after the API or side effects has been finished.21 Ara 2020

Sizin İçin Seçtik  What are Redux actions?

Leave a Reply

Your email address will not be published. Required fields are marked *