Skip to content

React.StrictMode throws warning because of findDOMNode use #1222

@kodai3

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.
facebook/react#14357
facebook/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

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