It depends on your project situation. you might have one file for each crud (post, put, delete, get) and put all the crud related hooks in one file. for example:

useCreateBook, useUpdateBook, useDeleteBook, useGetBook and useGetBooks in same hook file related to Book.

Majid Lotfinia
Majid Lotfinia

No responses yet