Skip to content

Getting a warning accessing findDOMNode inside render #10

@sakin

Description

@sakin

Warning: {COMPONENT} is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.

I could be doing it wrong, my ref looks like this:
<tr ref={row => { this.row = row; }} >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions