Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
IgorPartola
on Jan 16, 2021
|
parent
|
context
|
favorite
| on:
Alternative lightweight UI library to modern day f...
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.
turblety
on Jan 16, 2021
|
next
[–]
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.
christophilus
on Jan 16, 2021
|
prev
|
next
[–]
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.
IgorPartola
on Jan 16, 2021
|
parent
|
next
[–]
So then it’s probably more fair to compare it to Vue without VueX included, no?
_ks3u
on Jan 16, 2021
|
prev
[–]
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]
NetOpWibby
on Jan 16, 2021
|
parent
[–]
You have a very nice-looking blog.
_ks3u
on Jan 16, 2021
|
root
|
parent
[–]
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: