Re:How I learned to stop worrying and love React
by hackerboos on Saturday May 16, 2015 @10:04AM
(#9556115)
I like Mithril a lot, but the only thing that puts me off it over React and Angular is I don't really know how to tie in third-party libraries like d3 and dropzone.
[ Parent
| on HN ]
Re:How I learned to stop worrying and love React
by pygy_ on Saturday May 16, 2015 @10:51AM
(#9556270)
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.