babel-plugin-mjsx
babel-plugin-mjsx copied to clipboard
Passing attributes or children to a component
babel-plugin-mjsx does not seem to have the feature msx has:
Passing attributes or children to a component will generate a call to Mithril's
m.component()
function, with children always being passed as an Array
Some code that worked with msx compiled with babel-plugin-mjsx but an array of children was not rendered.
Could you provide an example of something that works with msx, but fails with babel-plugin-mjsx?
@brlewis, could you provide a more minimal test case? Perhaps create a failing testcase for babel-plugin-mjsx.
Having created a metalsmith plugin that calls msx directly, this issue is no longer blocking me; can't promise a concise test case soon. But I think this is similar to https://github.com/insin/msx/issues/10