Skip to content

Support ES6 Static Getters #61

Closed
Closed
@kcjonson

Description

@kcjonson

Forgive me if I'm wrong on this one, but react-docgen does not appear to support static getters in ES6 classes at the moment. Would be awesome if it did. If Im reading the docs right, this is simply a new resolver and the existing handlers can be reused?

static get displayName() {
    return "button";
}

static get defaultProps() {
    return {
        type: "primary",
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions