Quiz 4

Test your knowledge of Action creators.

We'll cover the following...
Q

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

Q2. The following code has a redux-thunk setup and includes an action that increments the state by 1. ...