Created
June 29, 2020 14:09
-
-
Save jmaicaaan/eb799a5ae1c93f6ab4a23846ad1d2e10 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 handleSubmit = async (formValues) => { | |
const response = await fetch('https://myserver.com/api/user', { | |
method: 'POST', | |
body: JSON.stringify(formValues), | |
}); | |
// ... | |
}; | |
// .... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment