Mixin that I posted to the ReactJS list.