@nhunzaker
Overall the code is fairly straightforward, but there is still some mystery. Also, this seems like it's breaking new ground a bit with animations for React. I was only aware of animating through css via ReactCSSTransitionGroup.
I think a few comments for the code would really help out. Things like tick(), updateSnapshot(), invariant could be good candidates.
Also what happens if componentDidMount() is used in the same component where this mixin is included, is that a problem (I realize that may be more of a react question but I haven't come across it yet if it is)
It's a very good idea. Fortunately, the life cycle methods defined in React mixins are non-destructive; they layer on under the component they are used in. This is actually one of my favorite parts of react.
@nhunzaker Overall the code is fairly straightforward, but there is still some mystery. Also, this seems like it's breaking new ground a bit with animations for React. I was only aware of animating through css via ReactCSSTransitionGroup.
I think a few comments for the code would really help out. Things like tick(), updateSnapshot(), invariant could be good candidates.
Also what happens if componentDidMount() is used in the same component where this mixin is included, is that a problem (I realize that may be more of a react question but I haven't come across it yet if it is)