React: merge 4 similar custom hooks into one and provide component unit test (To do via VSC live share / AnyDesk)

Job ID: 33894711

Budget: €30 – €250 EUR

Hello,

My task is about a situation where I need to have 4 custom hooks merged into one custom hook.

I tried to do so as on the following link but I have difficulties making that better plus the component using this implementation needs a unit test. I'm using JEST and the Testing library.

https://stackoverflow.com/questions/72594081/how-to-merge-similar-custom-hooks-into-one-custom-hooks

The task needs to be done via Anydesk and/or VSC code live share because the front-end uses GraphQL queries under a proxied cloud so cannot be shared.

If you would have a better idea of how to solve these issues instead of mine and a better way of collaboration I'll be listening to it.

Please review my link

Thank you
Related categories: JavaScript Testing / QA React.js