3 ms·
I am not an expert in either Mithril.js or React, but have used both. React is a safer bet in that it's far more widely used and battle tested by large sites a
by throwaway420 11y ago
I am not an expert in either Mithril.js or React, but have used both.
React is a safer bet in that it's far more widely used and battle tested by large sites and just about any problem you'd want to solve using React has been solved by others before. Finding solutions to any React problem you want to solve is just a Google search away whereas fewer people have really pushed Mithril's limits and solved every conceivable problem.
Mithril seems faster, more logically designed, and is more fun to use. The killer thing about Mithril is that the documentation and guides are so amazingly good and focused with lots of examples and simple explanations.
As with thuddle's comment, I also had to explicitly call redraw a few more times than what felt necessary to get things working on occasion, but I think that might be more due to my own inexperience with Mithril rather than a bug in the framework.
For personal projects, I'd definitely lean towards Mithril just to enjoy life more. If it was anything where my job was at stake and I had to minimize the risk of not successfully completing the project, React would still probably be the safest bet even if the solution wouldn't be as fun to create or as fast.