-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
#122 Is it possible to use async/await in plain React? #191
Comments
Yes, we can do it. |
@01abhishekjain if u install react with create-react-app or vite, it will provide you a template project to play with. And the project already bundled with webpack and babel and you don't have to worry about the configuration of react. In this case you can run react app normally and when you build an app by |
Yes, you can do it! |
"modern" browsers don't need a polyfil for Promises... |
The answer given is:
But, you can use it in React, like so:
What am I missing?
The text was updated successfully, but these errors were encountered: