as of now, I am making a ReactJs web application that is a chatroom using Firebase i have created a dedicated hook for each functionality for example, there are hooks like
that return a function that performs the tasks indicated by the name of those custom hooks, using hooks for these look attractive to be because it allows me to return state checkers like isLoading and isError along with their functions, those are simple useStates that i set during the process to manage the loading and error states.
there are other hooks I create that are related to context, i like to call contexts inside hooks because that way the code looks a lot more elegant and de-cluttered for example i created hooks like
I am not over-doing it am I? I was curious about were do I draw the line? is it healthy to use Hooks like this? should I change my Programming approach?