That's basically every major framework apart from React and it includes some major React libraries.
162 karma · joined November 17, 2012
const links = ctrl.pages().map(page => <a href={page.url}>{page.title}</a>);
return <div> {links} <button onClick={ctrl.rotate}> Rotate Links </button> </div>;
Compared to
m("div", [
ctrl.pages().map(function(page) {
return m("a", {href: page.url}, page.title);
}),
m("button", {onclick: ctrl.rotate}, "Rotate links")
]);
I can see what the UI will be with JSX at a glance with Mithril I have to parse the code.edit: Mind you both look awful due to HNs poor formatting ability. Honestly how did this website become so popular with tech people?
Just use React as the other two are copying/converging toward React.
All the other web app UI frameworks? Noise, they won't amount to much and add very little. The last release worth paying attention to was React 2 years ago. Hardly a breakneck pace.
The correct way to design such components would be to only create DOM for elements in view. Which is why this test is flawed.