Skip to content

Experiment: try letting CompositeComponent have an array of _renderedComponents #10

@thomasboyt

Description

@thomasboyt

I'm concerned that the whole ReactDOMFragment idea was bad from the start, given the trouble I've had figuring out how to store and update the state of nodeCounts/Indexes. This won't solve #7, of course, but would at least make it easier to make a simple "child -> parent" lookup without going through the mess that is ReactDOMFragment...

The main difficulty here would then be turning

<Component>
  <frag>
    <li>foo</li>
    <li>bar</li>
  </frag>
</Component>

into:

<Component>
  <li>foo</li>
  <li>bar</li>
</Component>

I wonder if making frag turn into an array under the hood would be the best way to do it...

Oh, and I guess this would mean CompositeComponent now also has to be a ReactMultiChild-using component. That could be... interesting...

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