JSFiddle - React, Tailwind, and code Playground
HTML
<form id="test" action="#" method="POST">
Form I - with no attribute for the button (will cause submit in browsers other than IE)<br />
<button id="testb" name="testing">Button 1</button>
</form>
<br />
<form id="test2" action="#" method="POST">
Form II - with type="button" attribute for the button - nothing will happen on click <br />
<button type="button">Button 2</button>
</form>
CSS
form {
border: 1px solid #666;
padding: 5px;
}