I am using Mithril as our MVC framework & I want to leverage of rich JQuery/Jquery UI functionalities. I would like to understand the 'Do's and Don't's' when combining jQuery with Mithril
What I understand is, I can use Mithril config to access the real DOM element & bind to various jQuery functions safely.
Using jQuery UI functions with Mithril
But what about using jQuery selectors on classes or ids to locate the real DOM element, like
attaching a jQuery date picker
beforeShow: function(input, inst) {
$('#ui-datepicker-div').addClass("mydatepicker");
},
or hiding a div
$("#mydiv").hide();
What is the danger of inprogress m.render causing $('blah') === undefined.
Would really like to understand the how these 2 components could/should interact with each other.