Skip to content

Consider warning when we get non-bool values for HAS_BOOLEAN_VALUE attributes #1785

@zpao

Description

@zpao

I saw a case where somebody was making use of cx to conditionally disable a button (<button disabled={cx({"disabled": this.state.disabled})}/> - clever but not necessary. I think a warning here might prove useful for these.

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