December 2019
Intermediate to advanced
598 pages
12h 21m
English
Let's connect the home page to the store:
import { connect } from 'react-redux';import { ThunkDispatch } from 'redux-thunk';import { AnyAction } from 'redux';
We've imported a function called connect from React Redux that will allow us to connect the HomePage component to the store. We've also imported some useful TypeScript types from Redux and Redux Thunk.
import { getUnansweredQuestionsActionCreator, AppState} from './Store';