Skip to content

Support defining render as an ES7 property #193

@birjj

Description

@birjj

According to the docs, the following must be true to detect a component:

  • When using classes, the class must either extend React.Component or define a render() method.

In some cases you might want to define your render function elsewhere, resulting in code like this:

import view from "./view.jsx";
export default class ExampleComponent extends SomeOtherComponent {
    render = view;
}

It would be nice if this could be detected.

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