Single or multiple tooltip components within project? #1177
Answered
by
gabrieljablonski
brandstetterm
asked this question in
Q&A
-
Hello, I am currently wondering what the best procedure is for using react-tooltip. Is it better to have a single global tooltip component with an id, which is then used by all components with the |
Beta Was this translation helpful? Give feedback.
Answered by
gabrieljablonski
Mar 7, 2024
Replies: 1 comment 1 reply
-
It's usually a good idea to start off with just a single global tooltip, and then adding extra ones if the need ever arises. Examples of situations where you'll probably want extra tooltips so it's easier to work with them:
There are probably other situations as well, but hopefully you get the idea. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brandstetterm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's usually a good idea to start off with just a single global tooltip, and then adding extra ones if the need ever arises.
Examples of situations where you'll probably want extra tooltips so it's easier to work with them:
There are probably other situations as well, but hopefully you get the idea.