Quiz 4
Test your knowledge of Action creators.
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. ...