Last active
January 15, 2022 18:23
-
-
Save tetrashine/852cd576260497cb349b192c160f4312 to your computer and use it in GitHub Desktop.
This file contains 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
const InfoButtonHoc = (component) => { | |
return class ExtendedComponent extends React.Component { | |
render() { | |
const { tooltip, excludeTooltipProps } = this.props; | |
return (<div className='info-btn' tooltip={tooltip}> | |
<component {...this.excludeTooltipProps} /> | |
</div>); | |
} | |
}; | |
}; | |
class DropDownList extends React.Component { | |
render() { | |
return ( | |
... | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment