How does thunk enhance Redux?
- By adding built-in security features.
- By allowing asynchronous action creators.
- By providing a styling framework.
- By simplifying the reducer logic.
Thunk enhances Redux by enabling asynchronous action creators. Thunk is a middleware that allows you to write action creators that return functions instead of plain objects. These functions can perform async operations, making it easier to manage async flows in Redux applications.
Loading...
Related Quiz
- In the context of React, what would be a potential drawback of overusing Web Workers?
- Why are immutable data structures beneficial for React applications?
- How to create React class components without ES6?
- You notice that a React component handling real-time chat messages re-renders excessively, even when no new messages are received. What could be a probable cause, and how would you address it?
- What is the difference between Shadow DOM and Virtual DOM?