Skip to content

Inline style with 0 value doesn't add "px" #2721

@DjebbZ

Description

@DjebbZ

Hello,

The docs say :

When specifying a pixel value for your inline style prop, React automatically appends the string "px" for you after your number value.

But not for 0 (the number). On purpose ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions