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

Where to put ReactTooltip #156

Closed
timothyarmes opened this issue Jul 28, 2016 · 2 comments
Closed

Where to put ReactTooltip #156

timothyarmes opened this issue Jul 28, 2016 · 2 comments

Comments

@timothyarmes
Copy link

Hi,

I want to be able to put data-tip all over my code, so I've tried having a single <ReactTooltip /> at the top level of my layout. This doesn't work however, since it does dynamically refresh when the page changes.

What should I be doing? Should I have a new in every component that includes a data-tip?

@wwayne
Copy link
Collaborator

wwayne commented Jul 28, 2016

  1. You can put ReactTooltip in your every component, remember give their unique id
  2. Call ReactTooltip.rebuild() after component fresh

I know it may sounds inconvenient, so the tooltip may change its implementation in the future #137

@wwayne wwayne closed this as completed Jul 28, 2016
@h8rry
Copy link

h8rry commented Aug 27, 2016

You put <ReactTooltip /> at the top level of your layout and call ReactTooltip.rebuild() on componentDidUpdate.

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

3 participants