Skip to content

React.StrictMode throws warning because of findDOMNode use#1222

Description

@kodai3

Is your feature request related to a problem? Please describe 馃檹

react-dom findDOMNode is derecated and will be removed in next major version update.
react/react#14357
react/react#28926

Because of this it throws warning.

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of StyledComponent which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

Now React 19 is released as beta.
This package will block us from upgrading.

Describe the solution you'd like 馃

We have to update the logic without using them.
https://react.dev/reference/react-dom/findDOMNode#finding-the-root-dom-node-of-a-class-component

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions