Evite a atualização reagir
function handleSubmit(event) {
event.preventDefault();
}
<form onSubmit={handleSubmit}></form>
Tamer Jarrar
function handleSubmit(event) {
event.preventDefault();
}
<form onSubmit={handleSubmit}></form>
shouldComponentUpdate(nextProps, nextState) {
return false;
}
//note that if shouldComponentUpdate returns true, then the component will
// be updated. This is usefull to conditionally reload the "view"
//