Skip to content

Document behaviour for rendering true #512

Description

@markboyall

See https://reactjs.org/docs/conditional-rendering.html.

When discussing conditional rendering, it's stated that React ignores falses, but it's not clear what happens in the true case. For instance, this.props.shouldSkip || dom.div(null, ...). I'm pretty sure that the actual behaviour is that all booleans are ignored, but it would be nice if it was firmly documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions