react onSumbit prevent default code example
Example: react-redux form preventdefault
<form onSubmit={e => {
e.preventDefault();
props.addItem('test');
}>
<form onSubmit={e => {
e.preventDefault();
props.addItem('test');
}>