Last active
February 12, 2016 13:14
-
-
Save joshwcomeau/b36f87ee07b80e956680 to your computer and use it in GitHub Desktop.
Animating the Unanimatable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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