mobx-state-tree is what I always wanted my MobX to look like, but wasn't smart enough to build.
This thing is amazing. Good job @mweststrate
How mobx-state-tree makes mobx scale | LEARN WHILE YOU POOP 2.15
https://learnwhileyoupoop.com/state/how-mobx-state-tree-makes-mobx-scale …pic.twitter.com/LDjDedSOI4
-
Show this thread
-
Next few days in LEARN WHILE YOU POOP land are all about alternative state management libraries. I'm gonna cover
@DavidKPiano's xstate and@jamiebuilds's unstated. But are there any other cool ones I'm not aware of?pic.twitter.com/5U1exjD75J4 replies 1 retweet 8 likesShow this thread -
Unstated, state so simple it goes without saying. It really does.
@jamiebuilds's Unstated might be the easiest state library to grok I've ever seen. Full explanation fits into just 2 minutes code at
https://learnwhileyoupoop.com/state/unstated-state-lib …https://www.youtube.com/watch?v=MhmhfaJn0_U …1 reply 1 retweet 4 likesShow this thread -
LEARN WHILE YOU POOP how
@DavidKPiano's XState helps you think
It even draws pictures of your state machines!
more at https://learnwhileyoupoop.com/state/how-xstate-helps-you-think …pic.twitter.com/JWNh4NuiaS1 reply 2 retweets 8 likesShow this thread -
LEARN WHILE YOU POOP Continuing our great alt state management showdown, we have
@james_k_nelson's Govern. Components, but for your state
codesandbox at
https://learnwhileyoupoop.com/state/govern-is-components-for-your-state …pic.twitter.com/kUSF1z9sRE1 reply 1 retweet 4 likesShow this thread -
Anyone tried
@cerebraljs before? I heard some people use it and found it really hard to grok. It's like Redux with syntactical sugar and even more indirection. Maybe I'm just too dumb
code
https://learnwhileyoupoop.com/state/cerebral.js-is-cool-but-i'm-too-dumb …pic.twitter.com/yaeFwgq2sL3 replies 1 retweet 4 likesShow this thread -
After trying these 8 state management libraries. I think I like
@diegohaz's constate best. It has everything
compact code
business logic collocation
immutable data
full redux devtools integration
easy to grok
A+ work
code
https://learnwhileyoupoop.com/state/constate-might-be-the-best-one-yet …pic.twitter.com/szHKR98oet1 reply 3 retweets 18 likesShow this thread -
LEARN WHILE YOU POOP Why so many React state libraries?
We've tried 8 different libraries. There's many more out there. What's the point? Are they really THAT different?
https://learnwhileyoupoop.com/state pic.twitter.com/DVbDVohcMY1 reply 2 retweets 3 likesShow this thread -
So you've got a bunch of state in your webapp. Wonderful! What happens when the user hits Cmd+R? Time to persist that state. That's what we're doing next https://learnwhileyoupoop.com/state pic.twitter.com/Egr0gow91V
1 reply 2 retweets 6 likesShow this thread -
Need to preserve some
#reactjs user state across sessions? Here's a quick and dirty way that works well. Dump the important parts of your data store to localstorage on every change. Works great
Also kiwi
makes a great presentation pointer
code
https://learnwhileyoupoop.com/state/simplest-way-to-save-your-react-state-localstorage …pic.twitter.com/ApElaaNb973 replies 2 retweets 3 likesShow this thread
Your bird looks fake when you're holding it.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.