Tuesday, August 15, 2017

Manipulate state in Redux, but not with ImmutableJS



The biggest problem above is that the state will change whenever an action is fired. We can improve it like below: Looks better, but you need to remember to do it in every case. And the code will become a lot of more cumbersome if you want to change something very nested:

No comments:

The Y Combinator (Slight Return)

Tiger got to hunt, Bird got to fly; Lisper got to sit and wonder, (Y (Y Y))? Tiger got to sleep, Bird got to land; Lisper got to tell hims...