You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mithril version next (0.2.1) supports Babelify with components.
Actually, right now you could do 2 things:
add /** @jsx m */ pragma as the first line of a JSX file.
specify at least an argument for DOM element (second argument of m()). Mithril plays very bad when second argument is null. For true React-like behavior, elements have to contain the key attribute - it ideally conforms as a placeholder instead of null.
Surprisingly, Mithirl supports children elements passed with arguments instead of Array.
I think, Mithrilify could easily adapt the behavior adding the /** @jsx m */ pragma to beginning of each file. But passing an attribute instead of null is up to developer. Leo could fix that or Mithrilify could adapt Babelify settings.
Or Babelify with full support in Mithril (supporting secondary parameter as null instead of Object) will totally deprecate Mithrilify. Sorry.
Mithril would allow to use Babel in recent version and MSX will be deprecated: insin/msx#13
Will Mithrilify migrate to Babel in a next version or it will be a legacy package?
The text was updated successfully, but these errors were encountered: