event.preventDefault () no gancho do React
import React, {useCallback } from "react";
const handleSubmit = useCallback((e) => {
//YOUR CODE..
e.preventDefault();
});
Zarden