Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Warning: findDOMNode is deprecated in StrictMode #76

Open
schabluk opened this issue Sep 19, 2020 · 1 comment
Open

Warning: findDOMNode is deprecated in StrictMode #76

schabluk opened this issue Sep 19, 2020 · 1 comment

Comments

@schabluk
Copy link

Hello,

I'm getting this Warning when using StricMode: https://reactjs.org/docs/strict-mode.html

webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:88 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of PageTransition 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 PageTransition)
    in Transition (created by PageTransition)
    in PageTransition (at _app.tsx:26)
@alphaolomi
Copy link

Its 2022 and am still getting the error
Next v12
NextConfig : reactStrictMode: true

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants