Skip to content

How can I get DOM on the React Hook? #16699

Closed
@karmiy

Description

@karmiy

In the class component,we can use ReactDom.findDOMNode(this) to get DOM element:

class Collapse {
componentDidMount() {
ReactDom.findDOMNode(this) ;
}
return this.props.children;
}

But how can I get it in React Hook without 'this';

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