Skip to content

Documentation of React.render seems to self-contradict #4265

@vp2177

Description

@vp2177

Correct me if I misunderstood something, but the documentation of the React.render method says:

If the ReactElement was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary[...]

But later...

Note: React.render() replaces the contents of the container node you pass in.[...]

In practice, what seems to happen corresponds with the Note

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions