instantly-use-redux
v0.0.17
Published
Note :-
Readme
Note :-
save your api in .env file and give name REACT_APP_TITLE.
you can use useDispatch and useSelector from react-redux
create a object of useDispatch thats name dispatch and call action
dispatch(getUser(arg,endPoint)) dispatch(getPosts(arg,endPoint))
Note: If you have arguments so you can pass otherwise you don't give but endPoint is always required
create useSelector const data = useSelector(state => state.Reducer)
and see console.log("data",data)
