Created
March 31, 2020 12:37
-
-
Save manakuro/99c7a3254f4813f5d40151c664631ba1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const updateUser = async (user) => { | |
try { | |
await axios.post('/users', user) | |
} catch (e) { | |
// handling error | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment