import m from 'mithril'; // login to the server function login(e) { } export const Login = { return m("form", { action: "/login", method: "post", onsubmit: login }, [ m("label", { for: "username" }, "Username"), m("input", { type: "text", name: "username" }), m("input", { type: "submit", value: "Login" }) ]); };