Hacker News new | past | comments | ask | show | jobs | submit login

Does Mithril include state management? I see it’s being compared to Vue + VueX but I didn’t see other mentions of state management on the linked page.



I've only just learned about Mithril streams: https://mithril.js.org/stream.html#combining-streams

No experience of using them, but they look cool for managing state.


It’s left up to you. POJOs work just fine in Mithril, but you can use any of the existing libraries (Redux, Mobx, etc) too if you want.


So then it’s probably more fair to compare it to Vue without VueX included, no?


I wrote a brief blog post[1] about vanilla state management in Mithril. Since Mithril triggers redraws on event handler calls, as another user said, you can just use POJOs very easily.

[1] [link redacted]


You have a very nice-looking blog.


Thanks!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: