How do you use react redux saga?

import { useDispatch } from “react-redux”; import { getPosts } from “../store/posts/actions”; Now we can dispatch the action getPosts just after the component is mounted. let dispatch = useDispatch(); useEffect(() => { dispatch(getPosts()); }, []); The complete Home component will be the same as below.8 Eki 2021

Sizin İçin Seçtik  Ortam değişkenleri nedir ne işe yarar?

Leave a Reply

Your email address will not be published. Required fields are marked *