Skip to content

The child management in this guide is misleading #10

@gaearon

Description

@gaearon

Please see this issue: facebook/react#13006.

Children aren't meant to be manually managed in an array. Instead, the idea is that you should call underlying library's appendChild and similar methods in your appendChild.

Declaring classes and keeping track of children in arrays and then calling render kind of goes against that because you're ignoring the valuable information React gives you (which child was added/removed) and then somehow try to reconstruct it later.

I temporarily removed the link to this tutorial from the README of the reconciler package but happy to re-add it if these issues are addressed. Also happy to answer more questions.

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