Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. #29

Open
patrickjsmirnov opened this issue Aug 2, 2019 · 0 comments

Comments

@patrickjsmirnov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant