October 2019
Intermediate to advanced
426 pages
11h 49m
English
Finally, we are going to implement both the Selector and Dispatch Hooks in the TodoFilter component, because we need to highlight the current filter (state from the Selector Hook) and dispatch an action to change the filter (the Dispatch Hook).
Let's implement Hooks for the TodoFilter component now:
import { useSelector, useDispatch } from 'react-redux'
import { filterTodos } from '../actions'
Read now
Unlock full access