3 ms·
http://mithril.js.org/integration.html http://mithril.js.org/integration.html shows how to integrate a Select2 field in a Mithril template (thus interoperaing w
by pygy_ 11y ago
http://mithril.js.org/integration.html http://mithril.js.org/integration.html shows how to integrate a Select2 field in a Mithril template (thus interoperaing with jQuery).
You can use the same approach for other libraries:
Add a function as `config` attribute to your virtual DOM element. That function gets the real DOM element as a parameter, and you can act on it with third party libraries.