I\'m setting up a file uploading functionality for the first time. I have a react front-end and an express server that will store the files. I have it set up so a user can submi
In your submitForm handler, pass a reference to the event and use event.preventDefault().
submitForm(event) { event.preventDefault(); ...other code here... }
You can also try
{ event.preventDefault(); } }>