Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

preact-compat React.Children.toArray falsey value handling incompatible with react  #419

@mrawdon

Description

@mrawdon

The component <Demo title="Hello, World!" > <div/> <div/> {null} {false} {undefined} </Demo> will have 5 children(counting all falsey values) in preact-compat while only 2 in react.

react
https://codepen.io/anon/pen/xLQWXG
preact-compat
https://codepen.io/anon/pen/wqQmqy

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