react-sizeme
react-sizeme copied to clipboard
findDOMNode is deprecated in StrictMode
Started a new CRA to and added withSize like so:
export default withSize()(App);
The console is throwing off warnings like this, so Changes they are a coming!
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of SizeMeReferenceWrapper 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 SizeMePlaceholder)
in SizeMePlaceholder (created by SizeMeRenderer(App))
in SizeMeReferenceWrapper (created by SizeMeRenderer(App))
in SizeMeRenderer(App) (created by SizeMe(App))
in SizeMe(App) (at src/index.js:9)
in StrictMode (at src/index.js:8)
I have the same issue
duplicate of #156
This could help? https://medium.com/trabe/getting-rid-of-finddomnode-method-in-your-react-application-a0d7093b2660
Same here
Any update on this?
Any update on this?