question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReactDOM.findDOMNode() in @vx/bounds

See original GitHub issue

Hi, we encountered this warning

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of withBoundingRects() which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
    in div (created by Tooltip)
    in Tooltip (created by TooltipWithBounds)
    in TooltipWithBounds (created by withBoundingRects())

Is it possible to replace findDOMNode with a ref in WrappedComponent.componentDidMount here?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
nvme0commented, Jun 13, 2022

Still experiencing this issue too

11reactions
dwoottoncommented, Jun 1, 2022

Any update with this by chance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactDOM – React
findDOMNode is an escape hatch used to access the underlying DOM node. In most cases, use of this escape hatch is discouraged because...
Read more >
Learn the Working of React Dom Finddomnode - eduCBA
4. findDOMNode(): This method returns a corresponding native browser DOM element to the component mounted. It is generally used to read out the...
Read more >
ReactDOM.findDOMNode() using React.Children child
cloneElement() to clone your target element. Do keep in minfd that the new clone will have the same ref as the original target...
Read more >
ReactJS findDOMNode() Method - GeeksforGeeks
In class-based components, the FindDOMNode() method is used to return DOM of the given element. Creating React Application And Installing ...
Read more >
Managing DOM components with ReactDOM - LogRocket Blog
ReactDOM.findDOMNode() ... We know that we can render our DOM elements with the render method. We can also get access to the underlying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found