put the async keyword in front of your functions; use await in the function's body; catch any errors. Now, create-react-app supports async/await ...
確定! 回上一頁