UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

29 lines (25 loc) 675 B
<name-form></name-form> <script src="../../node_modules/steal/steal.js" dev-bundle main="@empty" id="demo-source"> import { StacheElement } from "can"; class NameForm extends StacheElement { static view = ` <form> <p> <label> First Name: <input type="text"> </label> </p> <p> <label> Last Name: <input type="text"> </label> </p> <input type="submit"> </form> `; static props = {}; }; customElements.define("name-form", NameForm); </script>