3 ms·
I like to chime in every time I see a thread about Mithril. I learned modern SPA development with Mithril and in many ways still prefer it over React or Svelte.
by keb_ 6y ago
I like to chime in every time I see a thread about Mithril. I learned modern SPA development with Mithril and in many ways still prefer it over React or Svelte.
It's definitely starting to show its age as many of the main contributors have moved on and new libs are being created everyday. However the chat [1] is still very active and there are always great discussions going on there that are often not even specifically about Mithril. One of the best dev communities I've found, honestly.
One major benefit of Mithril for me is the lack of need for polyfills while still including a router, XHR utils, and simple state management, AND being compatible with IE11 out of the box, which is invaluable for many government contracts I work on where I don't want to introduce any potentially complicated build tools to an already complex codebase.
[1] https://gitter.im/mithriljs/mithril.js https://gitter.im/mithriljs/mithril.js
- dsego 6y agoI love it because you not don't special state management like redux unidirectional flow or mobx observables, or even setState/useState. Just use POJOs and mutate the state however you like, because it automatically redraws on events & xhr so all state changes are picked up on the next render. This typically covers all the cases you need, of course there is a way to prevent or manually trigger a redraw for edge cases.