I started programming in React Native, and I got used to use the syntax:
async myFunction(){
...
return await otherFunction();
}
But I don't know how to make it compatible with React JS and React Native in a shared package. How can I accomplish this so that it works in both platforms?
Thanks!
question from:https://stackoverflow.com/questions/38357234/is-it-possible-to-use-async-await-in-react-js