JSFiddle - React, Tailwind, and code Playground

by dactivo

HTML

<form id="form">
    <input name="text" type="text"><br/>
    <input name="commit" type="submit" value="Save"/>
    <input name="commit" type="submit" value="Cancel"/>
  </form>

CSS

.new{background:red}

JavaScript

$('#form').submit(function(e) {
  console.log(e);
});