react-simple-tooltip icon indicating copy to clipboard operation
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.

Open patrickjsmirnov opened this issue 6 years ago • 0 comments

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",

patrickjsmirnov avatar Aug 02 '19 13:08 patrickjsmirnov