Connecting the Search Page
Learn to connect the search page with the store.
We'll cover the following...
We'll cover the following...
Steps to connect search page to store
Let’s connect the search page to the store. To do that, perform the following steps:
In
SearchPage.tsx, let’s add the followingimportstatements to import the hooks we need from React Redux and types from our store:
import { useSelector, useDispatch } from 'react-redux';import {AppState,searchingQuestionsAction,searchedQuestionsAction,} from './Store';
Remove the ...