and maintaining state. Developing with immutable data encourages you to think differently about how data flows through your application.” - Immutable.js documentation
nextProps.value; } Example use-case • this.props.value = { foo: 'bar' } • nextProps.value = { foo: 'bar' }, • The references are different even though the props are same
nextProps.value; // true } • this.props.value = { foo: 'bar' } • nextProps.value = { foo: 'bar' }, • The references are different even though the props are same. Example use-case
- https://www.infoq.com/presentations/Value-Values 2. David Nolen, Mori - https://github.com/swannodette/mori 3. Immutable.js by Facebook - https://facebook.github.io/immutable-js/ 4. Elm Language - elm-lang.org 5. Ideal Hash Trees, Phil Bagwell - http://lampwww.epfl.ch/papers/idealhashtrees.pdf 6. Lee Byron, React.js Conf - https://youtu.be/I7IdS-PbEgI
low overhead applications. 2. We can use it in JS applications using libraries. 3. They use structural sharing for efficient implementation. 4. They enable super fast performance.