Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import m from "mithril";
- const search = {
- view: function() {
- return m("main.main", [
- m("h2", "Sok produkter"),
- m("p.ex01.ex02[style=color:blue]", "welcome to tag <p>"),
- m("form", {
- onsubmit: function (e) {
- e.preventDefault();
- }
- }, [
- m("label.input-label", "Sok"),
- m("input.input[type=text][placeholder=Produktnamn", {
- oninput: function (e) {
- console.log(e.target.value);
- }
- })
- ])
- ]);
- }
- };
- export { search };
Add Comment
Please, Sign In to add comment