3 ms·
Yes! I don't think Mithril gets enough attention. It's my go to JS framework when I need more than Vanilla JS but don't need something like React.
by nullwarp 3y ago
Yes! I don't think Mithril gets enough attention. It's my go to JS framework when I need more than Vanilla JS but don't need something like React.
- ilrwbwrkhv 3y agoWhy would you ever need React over Mithril?
- skrebbel 3y agoColleagues, ecosystem
- jrajav 3y agoThe ecosystem, if you're building a product of a certain complexity and can't afford writing large, complex, un-battle-tested views from scratch.
- ilrwbwrkhv 3y agoWhat's an example of a large, complex, unbattle tested view?
- mhio 3y agoMaterial Design
- slmjkdbtl 3y agoDid you ever run into performance problem with Mithril? I like how simple it is to use but the idea to run / diff the entire component tree on every user interaction kinda scares me
- toastercat 3y agoI've been using Mithril since 2017 or so. The answer is: no. To give you a production example, Mithril is used in the video game Guild Wars 2 to render the marketplace in-game and the lead web engineer reported that it was performant enough for their use-case [1]. (I've played Guild Wars 2 and never noticed any issues with it, so good enough for me). In most cases, your bottleneck won't be Mithril (or React for that matter), but instead what expensive computations you're doing in your components. While React has React.memo, Mithril has the `onbeforeupdate` hook [2] you can use to memoize components if you need it. [1] https://carlmungazi.github.io/sourcecodeadventures/posts/pat-interview https://carlmungazi.github.io/sourcecodeadventures/posts/pat... [2] https://mithril.js.org/lifecycle-methods.html#avoid-premature-optimizations https://mithril.js.org/lifecycle-methods.html#avoid-prematur...
- naasking 3y agoSee benchmarks: https://krausest.github.io/js-framework-benchmark/2023/table_chrome_114.0.5735.90.html https://krausest.github.io/js-framework-benchmark/2023/table...
- endofreach 3y agoHaven‘t heard of it yet. Sounds exactly like what i needed many times lately. Thanks!