Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to send form data from react to express

const url = localhost:4000/api/users/register;
const usersData= [];

let getData = () => {
axios.get(url)
   .then(res => usersData.push(res.data))
   .catch(err => console.log(err.data))
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #send #form #data #react #express
ADD COMMENT
Topic
Name
2+1 =