Skip to content

Warning: Tooltip: key is not a prop. #1089

Discussion options

You must be logged in to vote

Hi Ricardo. Unfortunately there's not enough information here to be able to help you for sure.

As you've noticed, the tooltip component indeed does not have an explicit key prop, but since it is a functional component, the key prop is implicit. Here's an example from the official React docs.

From the error message, it seems like you're defining a wrapper component for the tooltip on your components13/Tooltip.ts file.

My guess is that, as the error message suggests, you're trying to expose the key prop, which is not allowed. If that's not the case, please provide more information.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ricardo-fnd
Comment options

Answer selected by ricardo-fnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants