Single or multiple tooltip components within project? #1177
-
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.
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.
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.