Is it possible to use async/await in plain React?
If you want to use async
/await
in React, you will need Babel and transform-async-to-generator plugin. React Native ships with Babel and a set of transforms.
If you want to use async
/await
in React, you will need Babel and transform-async-to-generator plugin. React Native ships with Babel and a set of transforms.