Jan 2, 2024
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.