Code for http://bbarr.github.io/code/2014/08/17/immutable-react.html - series