ANOTHER way to call #restful #api in #redux
▻https://hackernoon.com/another-way-to-call-restful-api-in-redux-d8dd991d0779?source=rss----3a81
ANOTHER way to call restFul API in ReduxAnnouncing a general way to make developer life easier for calling API in #react-Redux.Photo by Randy Fath on UnsplashRecently, I’ve switched from backend development to the frontend side. in first sight, I found API call is truly tough.Why we need to make a type + action + take action (redux-saga)+ handler function ? for each API call?? and again a type + action + reducer to store the result. I keep asking my self.I do a lot of research and all sample and document are the same way more and less. like this example:Moving API requests to Redux-SagaSo I think to the other way, something more functional.API ClientAPI client is a structure to handle the most API call in one place without duplicate codes (DRY). I’ll explain this structure using redux (...)
#saga