swyxio opened this issue 5 years ago · 0 comments
sometimes children can be arrays:
<div> {posts.map(post => <p>{post}</p>)} </div>
this causes problems for didact.
the solution is to just flatten children:
reconcileChildren(fiber, fiber.props.children.flat())