Categories
Tutorials

An Introduction to Mithril Components

As with other popular frameworks, mithril allows developers to encapsulate functionality into reusable components. A mithril component is comprised of an object containing lifecycle methods and a “view” method to render HTML. vnode(s) are javascript objects that represent the virtual DOM elements. To create a vnode, an HTML element tag, id, class, or component is [ Read More… ]

Categories
Tutorials

Get Started with Mithril

This will be the first of many tutorials covering the lesser known but very powerful and performant javascript framework Mithril.js. Mithril is primarily used for SPA (Single Paged Applications) but also works well as a drop in for existing sites and in many cases a replacement for jQuery. Creating a basic HTML file Start by [ Read More… ]