react-simple-tooltip
react-simple-tooltip copied to clipboard
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Hi! I have a problem with this tooltip.
How I use it (just copy from readme):
import React from 'react'
import Tooltip from 'react-simple-tooltip'
const Creative = props => {
return (
<div>
<Tooltip content="😎">
<span>test</span>
</Tooltip>
</div>
)
}
export default React.memo(Creative)
I got the following error: Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
I use:
"react": "^16.8.0",
"react-dom": "^16.8.0",