Skip to content

Instantly share code, notes, and snippets.

@joshwcomeau
Last active February 12, 2016 13:14
Show Gist options
  • Save joshwcomeau/b36f87ee07b80e956680 to your computer and use it in GitHub Desktop.
Save joshwcomeau/b36f87ee07b80e956680 to your computer and use it in GitHub Desktop.
Animating the Unanimatable
componentDidUpdate(previousProps) {
previousProps.children.forEach( child => {
let domNode = ReactDOM.findDOMNode( this.refs[child.key] );
const newBox = domNode.getBoundingClientRect();
// ...more to come
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment