Arrêtez de refaire la page réagir
function handleSubmit(event) {
event.preventDefault();
}
...
<form onSubmit={handleSubmit}></form>
Helpless Hippopotamus
function handleSubmit(event) {
event.preventDefault();
}
...
<form onSubmit={handleSubmit}></form>