October 2019
Intermediate to advanced
426 pages
11h 49m
English
Similarly to the Login component, we can also use the useDispatch Hook in the Register component, as shown in the following steps:
import { useDispatch } from '../hooks'
const dispatch = useDispatch()
Now the Register component also makes use of our custom Hook instead of directly accessing the dispatch function.
Read now
Unlock full access