Skip to content
pelonpelon edited this page Jun 3, 2015 · 35 revisions

Common questions found on Gitter, the Google Group, and StackExchange

  • Contributors: Please add links to gists instead of lengthy code examples

  1. Where can I find help learning Mithril?
  1. How can I add animation to my Mithril app?
  1. How do I fix this error: "Please ensure the DOM element exists before rendering a template into it."
  • Try putting the script tag for the offending javascript as the last thing inside the body tag.
  1. Why doesn't my view render?
  • The view function must return a virtual element, not an array of elements:
    return m("div")
    return [m("div")]
Clone this wiki locally