Created
May 16, 2016 16:17
-
-
Save rivertam/5823336013e8e6f46db75ed374121118 to your computer and use it in GitHub Desktop.
Problematic rendering
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
render() { | |
const style = this.getStyles().position ? | |
this.getStyles() : | |
absolutePositionStyles(this.props.getCard(), this.getStyles()); | |
const classes = ['bubble']; | |
if (!this.state.static) { | |
classes.push('is-animating'); | |
} | |
const key = this.props.article.slug; | |
const check = div => { | |
console.log(`[%cthadiv%c] Rendering tha div for the first time! ${key}`, 'color: purple;', ''); | |
console.log('divvers', div); | |
}; | |
const div = ( | |
<div key={key} ref={check} className={c(classes)} style={style}> | |
{this.props.children} | |
</div> | |
); | |
console.log(`[%cthadiv%c] Rendering tha div at all! ${key}`, 'color: purple;', ''); | |
return div; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even with no unmounting/remounting.