What is the benefit of Redux thunk?

The key benefit provided by redux-thunk is it allows us to avoid directly causing side effects in our actions, action creators, or components . Potentially messy code can be isolated in a thunk, leaving the rest of the code uncluttered. Middleware can later invoke the thunk to actually execute that function.

Sizin İçin Seçtik  Ekran kartı güncelleme nereden bakılır?

Leave a Reply

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