Skip to content

Shorthand React fragment, ternary operator #4

@ghost

Description

The rules no-method-declaration-in-view, no-react-hooks-in-view, no-complex-logic-in-view-attributes do not work when:

  1. The component uses the shorthand of React fragment.

  2. The component return JSX by using the conditional (ternary) operator.

photo_2023-03-20_15-05-55
photo_2023-03-20_15-06-03

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