3 ms·
Btw react-with-addons ships with react.addons.update which gives effcent enough immutable updates without needing to leave plain old is data structures like the
by dustingetz 11y ago
Btw react-with-addons ships with react.addons.update which gives effcent enough immutable updates without needing to leave plain old is data structures like the mentioned mori and immutablejs. I don't know why react.addons.update was released with such cripplingly bad syntax, but you can trivially use it to implement clojure's assoc, update-in and the like, see here: https://github.com/dustingetz/update-in https://github.com/dustingetz/update-in (this tiny library is production quality and the basis of react-cursor). When my consulting clients are ready to taste immutability but have all this jquery style code that they can't leave behind and which isn't compatible with redux, I point them in this direction. (Hi from RC batch S'12!)