October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next we are going to adjust the CreatePost component, which is similar to what we did with the Logout component. This process is outlined in the following steps:
import { useUserState, useDispatch } from '../hooks'
const user = useUserState() const dispatch = useDispatch()
Now the CreatePost component makes use of our custom Hooks instead of directly accessing the user state and the dispatch function.
Read now
Unlock full access