This is one place where using Clojurescript wrappers of React has a real payoff - immutable datastructures make equality checking very very cheap.