Skip to content

React conditional render when checking for true value should be shorthanded #139

Closed
@vladnicula

Description

{isVisible === true && <span>Now you see me!</span>}

could be

{isVisible && <span>Now you see me!</span>}

In vue this seems to work fine:

<span v-if="(isVisible)">Now you see me!</span>

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreact generatorsIssue related to the react generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions