in ReactJS by (2.7k points)
What is Redux Thunk?

1 Answer

0 votes
by (2.7k points)

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.

Related questions

0 votes
asked Jul 2, 2019 in ReactJS by Venkatshastri (1.4k points)
0 votes
0 votes
0 votes
asked Jun 19, 2020 in ReactJS by JackTerrance (2.7k points)
0 votes
0 votes
asked Jun 19, 2020 in ReactJS by JackTerrance (2.7k points)
...