Skip to content

React style guide should give guidance on conditionals in JSX #812

@bgits

Description

@bgits

I have come across a code base which references this style guide and uses && instead of ternaries in JSX. After discussing in gitter with @megapctr, this practice should be avoided and a ternary should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions