Mithril Elements

by Kasper Tidemann

The Mithril project by Leo Horie has seen great traction the past few months and with good cause: it’s an amazingly simple, easy-to-use framework for client-side applications written in JavaScript.

With great traction comes community support and extensions to the framework. One of the first in line is the brand new Mithril Elements by Phil Toms. In short, Mithril Elements allows you to use custom elements when writing your templates like so:

m('menu', [
  m('.item', 'Blog'),
  m('.item', 'Profile'),
  m('.item', 'Log out')
])

For more examples, take a look at the starter kit.