recommended posts

EMBED

Wed Jul 20 2022 23:49:25 GMT+0000 (UTC)

Saved by @gazifahad #javascript #react.js


useEffect(() => { dispatch(getPost(id)); }, [navigate,id,dispatch]); useEffect(()=>{ if(post){ dispatch(getPostsBySearch({search:'none',tags:post?.tags.join(',')})) } },[post]) const recommendedPosts=posts.filter(({_id})=> _id=== post._id);

https://www.youtube.com/watch?v=VsUzmlZfYNg