November 2018
Beginner
502 pages
10h 22m
English
The first component we are going to connect to the store is going to be the ProductsPage component.
Let's open up ProductsPage.tsx and start to refactor it:
import { connect } from "react-redux";
We'll use the connect function at the end of this section to connect the ProductsPage component to the store.
import { IApplicationState } from "./Store";import { getProducts } from "./ProductsActions";
Read now
Unlock full access