DEV Community

Discussion on: How to change form inputs in React and post using axios?

Collapse
 
nestedsoftware profile image
Nested Software

The first step is to get the input data from the form and just print it to the console - don't worry about submitting it to a server. See react docs for details.

The next step is to use axios to post. Start by getting this working using plain javascript without react. See docs for details.

Once you have these two pieces working separately, you can put them together to submit the data from your form to the api.