React 18 for Beginners: Creating a generic HTTP Service

Hello ,

I just finished this lecture. but i’m stuck on how to add a generic http service to the other service and add specific functions to the service as well?

in other word; in userService I already applied HTTP service inside it , so i can use all CRUD . but if i want to add additional functions to userService so i can use CRUD as well as other added functions.

Thank you