What is Mithril?
Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess
Mithril supports IE11, Firefox ESR, and the last two versions of Firefox, Edge, Safari, and Chrome. No polyfills required.
<!-- Development: whichever you prefer --> <script src="https://unpkg.com/mithril/mithril.js"></script> <script src="https://cdn.jsdelivr.net/npm/mithril/mithril.js"></script> <!-- Production: whichever you prefer --> <script src="https://unpkg.com/mithril/mithril.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/mithril/mithril.min.js"></script>
npm install mithril --save
The "Getting started" guide is a good place to start learning how to use mithril.
TypeScript type definitions are available from DefinitelyTyped. They can be installed with:
$ npm install @types/mithril --save-dev
Documentation lives on mithril.js.org.
Thanks for reading!