Skip to content

Stateless component descriptions are ignored if declaration is exported #51

Closed
@davidtheclark

Description

@davidtheclark

If I do this, my docBlock component description works as expected:

/**
 * Description here.
 */
function myComponent() { .. }
export default myComponent;

However, in this situation the description comes out blank:

/**
 * Description here.
 */
export default function myComponent() { .. }

Am I misunderstanding something, or is this a bug?

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