19
componentDidUpdate() {
this.updateParticipationTooltip();
}
updateParticipationTooltip() {
const $target = $(this.tooltipRef);
const participation = this.props.participation;
const content = `

`;
$target.popover('destroy').data('content', content);
}
render() {
return (
this.tooltipRef = ref }>
/* 省略 */
)
}
React と jQuery をミックス
props の内容が変わったときに、
popover の中身を更新