Skip to content

Does not recognize functional components that render a Fragment using shorthand #298

Closed
@rsolomon

Description

@rsolomon

I assume it's just because react-docgen does not yet use babel 7. If a stateless functional component renders a fragment using shorthand (return <></>), react-docgen will say it could not find an exported component:

Warning: x/y/z/index.jsx matches a pattern defined in “components” or “sections” options in your style guide config but doesn’t export a component.

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