React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in React JS by

What is Redux Thunk used for?

Click here to read more about DevOps

1 Answer

0 votes
by

Redux thunk is middleware that allows us 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 us to handle the asyncronous dispatching of actions. The inner function receives the store methods dispatch and getState as parameters.

To enable Redux Thunk, we need to use applyMiddleware()

Related questions

Madanswer
0 votes
0 votes
0 votes
asked Jun 19 in React JS by JackTerrance
0 votes
asked Jun 19 in React JS by JackTerrance
...