import React from 'react' import PropTypes from 'prop-types' import { Popper } from 'react-popper' import Text from './text' class Tooltip extends React.PureComponent { render() { const { message, targetRef } = this.props return ( {({ ref, style, placement, arrowProps }) => (
{message}
)} ) } } Tooltip.propTypes = { message: PropTypes.string.isRequired, targetRef: PropTypes.node.isRequired, } export default Tooltip