Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render () {
const {
trigger,
disabled
} = this.props
return trigger ? (
{
this._popover = el
if (typeof this.props.popoverRef === 'function') {
this.props.popoverRef(el)
}
}}
>
{safeCloneElement(trigger, {
ref: (el) => {
this._trigger = el