Skip to content

Support for Void Function Components #62

@marcohamersma

Description

@marcohamersma

Hi there,
I've been trying to implement this in our app, and so far so good, but I noticed that the library doesn't support void function components. It's mostly a semantic/type difference.

I saw the REACT_FC_NAMES const in the code, which made it seem as easy as adding VFC to make this functionality work.

I'd make a PR, but I was wondering if this all that needs to be done to add support for VFCs, or is there something more to consider (regarding children, for example)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions