LakshmiSowmya04 / GradLink

Reconnect. Rediscover. Rebuild.
9 stars 15 forks source link

Create Custom Hooks with React Query for Handling Authentication Requests #14

Open AdityaGhamat opened 3 days ago

AdityaGhamat commented 3 days ago

We need to create custom hooks using React Query for handling authentication-related requests in our application. This includes useSignup for user registration, useLogin for user login, and useOtpVerification for verifying OTPs. Each hook should manage loading and error states, promoting code reusability and cleaner components. Pros - 1.Minimum use of useEffect, so performance can be improved so much. 2.Less code and modular code

AdityaGhamat commented 3 days ago

@LakshmiSowmya04 Its really essential issue and i wish to solve it.

LakshmiSowmya04 commented 3 days ago

@AdityaGhamat if there are no other tasks in queue for you please proceed for this

AdityaGhamat commented 3 days ago

@LakshmiSowmya04 can you tag it in hacktoberfest?

nikkuv commented 3 days ago

@AdityaGhamat I wish to work to on this, please assign it to me.

AdityaGhamat commented 3 days ago

@nikkuv sure.will be able to create custom hooks for request coming from server?