3 ms·
You are absolutely correct; this is what Mithril.js does. In Mithril, a component is a plain JavaScript object with only two properties: controller and view. No
by simplify 11y ago
You are absolutely correct; this is what Mithril.js does. In Mithril, a component is a plain JavaScript object with only two properties: controller and view. No set / replaceState, no component[Will | Did][Mount | ReceiveProps] – just plain JavaScript data structures.
Because Mithril uses plain JavaScript constructs, you can use standard design patterns and techniques when constructing and managing your components. Everything works beautifully.
- Numberwang 11y agoWhy isn't the Mithril library more popular?
- simplify 11y agoIt's getting more and more popular every day! It just doesn't have a billion dollar company's marketing budget to promote itself :)