by mattdeboard · 12y ago · 0 comments
I'd much prefer to be able to "require" the JSX where I need it and have the right context passed to it. That way all the editor-specific nonsense can just be avoided.
m(".form-group", [
m("input.form-control[placeholder='Name']")
])Well, you got to like semantically significant whitespace for this.
On the other hand, Mithril offers something like JSX, so the <> and ; crowd should be happy.
I imagine a similar effect can be had with ES6 destructuring assignment, just with more commas and mandatory array brackets.