After entering this message, I realized that this is really not the answer to the original question, but instead the subsequent answer to your request for proposals in your comment above. If you really do not believe that he should stay, I will delete him, but he is too big for comment, sorry.
React, , , ,
ref={ function ( element ) {
self.setState({
circleWidth: element.offsetWidth,
circleHeight: element.offsetHeight
})
}
, , ( ref) setState , , .
<Popover trigger=, -, :
<Popover trigger={this.state.circleWidth > 999} />
... 999 - . true, Popover. , . Popover, div
, React , render() isTriggered.