December 2019
Intermediate to advanced
598 pages
12h 21m
English
In this section, we are going to create actions that will initiate changes to our store state. Let's get started:
import { Action } from 'redux';
The Action type is a base type from the core Redux library that contains a type property that we can use to type in our actions.
interface GettingUnansweredQuestionsAction extends Action<'GettingUnansweredQuestions'> {}
Notice that the interface uses the extends keyword.
Read now
Unlock full access