Quiz 4
Explore how to write redux-thunk actions that conditionally update state values within Redux. This lesson offers a practical quiz to help you understand action creation and control state increments using middleware.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
The following code shows an action creator function. Is the implementation correct?
const createAction = (actionType) => (data) => ({
type: actionType,
payload: data
})
const setTime = createAction('SET_TIME')
console.log(setTime(100))
A.
Yes
B.
No
1 / 1
Q2. The following code has a redux-thunk setup and includes an action that increments the state by 1. ...