Skip to content

useBooleanShorthandSyntax strip false values #732

Open
@pascalduez

Description

@pascalduez

The useBooleanShorthandSyntax option (which is on by default), strips false values.

While the behavior is fine for a true value: <Foo bar={true}> --> <Foo bar>,
it's not for a false value: <Foo bar={false}> --> <Foo>,
which is definitely not the same thing, the prop is removed completely.

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