Skip to content

Instantly share code, notes, and snippets.

@tetrashine
Last active January 15, 2022 18:23
Show Gist options
  • Save tetrashine/852cd576260497cb349b192c160f4312 to your computer and use it in GitHub Desktop.
Save tetrashine/852cd576260497cb349b192c160f4312 to your computer and use it in GitHub Desktop.
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