5 ms·
Mithril does this, and I find its syntax much cleaner and easier to write in than JSX. view: function(ctrl) { return m("div", [ ctrl.pages().map(f
by hyperhopper 10y ago
Mithril does this, and I find its syntax much cleaner and easier to write in than JSX.
view: function(ctrl) {
return m("div", [
ctrl.pages().map(function(page) {
return m("a", {href: page.url}, page.title);
}),
m("button", {onclick: ctrl.rotate}, "Rotate links")
]);
}
http://mithril.js.org/ http://mithril.js.org/