4 ms·
> React is better at anything else at making [a web application] Mithril.js beats it in my opinion. I’m sure many developers would argue in favor of other lib
by chimpanzee 2y ago
> React is better at anything else at making [a web application]
Mithril.js beats it in my opinion.
I’m sure many developers would argue in favor of other libraries over React.
React is simply the most popular.
- danjl 2y agoBeing the most popular comes with big benefits. There are far more articles about how to support issues that you run into, and many more libraries available for your use. While other libraries maybe "better"in some cases, giving up the support of the large community is a big cost.
- chimpanzee 2y agoNo argument there. But “better at” implies something inherent to React’s design rather than to its community.
- mdaniel 2y agoI'm glad you like it, but https://mithril.js.org/simple-application.html https://mithril.js.org/simple-application.html is some "uh-huh, thanks but no"
- chimpanzee 2y agoCare to be specific? Is it the documentation you don’t like? Is it the example application’s design you don’t like? Or is it something about Mithril itself?
- mdaniel 2y agoTwo things, in descending order of rage-close-tab for me: that m(.., [m(), m()]) is deeply unserious, and .then((result) => User.list = result) just seems oppressively singleton (although I'm open to that being a tutorialism but why even show users antipatterns if that's not how it's going to work for real?) I tried to be neutral in my reply, so if you like it then I'm glad for you, and I hope your colleagues find gainful employment when they have to go to their next job that also uses Mithril. But I hope I never ever have to work in an organization which thinks a shitload of m() functions is easier to read than JSX
- edflsafoiewq 2y agoJSX vs hyperscript is a religious issue. You can use JSX with Mithril if you prefer (after all the m() thing is what JSX compiles to).
- chimpanzee 2y agoYes, that whole page you cited is simply tutorialism. And Mithril supports jsx. (Not to mention the advantages gained by avoiding JSX in favor of hyperscript) Might be best to actually use it in a small (or large) application of your own design rather than judging prematurely. (I’m not suggesting large orgs use Mithril, as other commenter mentioned, community in some situations is more important than the tooling. But “building a web app” does not necessarily imply “employing a team of local developers to build a web app asap for less than x usd”.)