Created
December 1, 2018 00:24
-
-
Save chamatt/61e09bb704b5e6d8e716c20761c1586f to your computer and use it in GitHub Desktop.
Enviar Post
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
| function EnviarPost(dadosDoFormulario) { | |
| axios | |
| .post("http://localhost:3000/posts", dadosDoFormulario) | |
| .then(() => ObterPosts()) | |
| .catch(e => console.log(e)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment