How to write a shared Mithril component that can be used by Mithril 0.2 and 1.x apps
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
0.2.html
1.x.html
component.js
readme.md

readme.md

A small project that shows how to write a shared Mithril component that can be used by Mithril 0.2 and 1.x applications

Here is the project structure :

  • component.js: the shared component
  • 0.2.html: a simple Mithril 0.2 application that uses the component
  • 1.x.html: a simple Mithril 1.x application that uses the component