November 2018
Beginner
502 pages
10h 22m
English
In this section, we are going to create two actions for getting the products and indicating that products are being loaded.
import { ActionCreator, AnyAction, Dispatch } from "redux";
These are a few types from Redux that we are going to use when implementing our actions.
import { ThunkAction } from "redux-thunk";
import { getProducts as getProductsFromAPI } from "./ProductsData";
We've renamed the API function to getProductsFromAPI to ...
Read now
Unlock full access