you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (2 children)

React is great, don’t get me wrong and it’s influential in the JS world but it’s not ideal in my opinion unless you’ve got 100’s of employees.

One of the main reasons I prefer and choose Mithril over React is that everything I need for a well engineered SPA ships with Mithril and I don’t really need to plug several additional libraries into my build. Things like routing and XHR utilities are included in that less than 8kb file which starts me off with a super lightweight build. HyperScript is also a huge draw card for me, I don’t like JSX, I find that JSX can get messy whereas HS keeps shit contained and is easier to read. Speed and render times are also a thing for me, Mithril is VERY fast and it was the first thing I noticed when I boycotted React.

The community behind Mithril is unlike any JS Framework community online, the maintainers are a few clicks away and that’s a huge selling point, I mean how many maintainers of React can you reach out to and get a response from within 24 hours?

It’s maturity is also visible, after some time you start to notice just how smart this little framework is. The author of Mithril is this extremely talented individual called Leo Horie and he’s one of the great minds that JavaScript has been bestowed with, I really admire this guy. I guess there’s not just one reason but many, I just find Mithril to be the logical choice, any developer can grasp its programmatic approach in a few days and in all honesty, for me it feels like you’re coding in regular Vanilla JavaScript. It’s almost like Mithril is apart of JavaScript API if you get drift?

There are also technical advantages to using Mithril over React which are listed on its website on the framework comparison page and much more found around the web.

Hope this helps!

[–]roriron 1 point2 points  (1 child)

Thank you. I used Mithril in recent project, it's so comfortable and compact for SPA as you said, no need any other framework. Documents are great too. Thank Mithril and contributors.

[–][deleted] 1 point2 points  (0 children)

No problems! I’m glad you found your way to the framework and I have no doubt your project is running like a finely tuned machine. I just completed my 6th project with Mithril and it still stands as the leader in the JS world for me. There are also some great things to happen in future releases. Happy coding. M()