Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the handleLoginForm to async and await for fetch api #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emmanuelonwukwe
Copy link

I converted the handleLoginForm function of the src/App.js file to async so we can await for the fetch api response incase the user needs to make use of the response data.

@Dhinesh-07
Copy link

I suggest to use async and await function for fetch api, the code which @emmanuelonwukwe was changed was best approach to handle the api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants