Skip to content

react-in-jsx-scope does not understand fragments #1758

Closed
@dantman

Description

@dantman

If you use <></> fragment syntax the react-in-jsx-scope rule will not declare React as in scope and the no-unused-vars will fail on the React import.

However React is required for fragment syntax as well as normal element syntax.

import React from 'react';

export default () => <>fragment</>;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions