Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. postJson = (postJsonData) => {
  2.         axios.post('http://localhost:3000/postJson', {
  3.             postJsonData
  4.         })
  5.         .then(function (response) {
  6.             console.log("success!");
  7.             console.log(response);
  8.         })
  9.         .catch(function (error) {
  10.             console.log(error);
  11.         });
  12.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement