November 2018
Beginner
502 pages
10h 22m
English
In this section, we'll connect the ProductPage component to our store:
import { connect } from "react-redux";import { addToBasket } from "./BasketActions";import { getProduct } from "./ProductsActions";import { IApplicationState } from "./Store";
import { IProduct } from "./ProductsData";
interface IProps extends RouteComponentProps<{ id: string }> { addToBasket: typeof addToBasket; getProduct: typeof getProduct; loading: boolean; product?: ...Read now
Unlock full access