Skip to content

displayName and propTypes are not allowed on forwardRef component #22

@tu4mo

Description

@tu4mo

Description

Using displayName and propTypes on a forwardRef component shows error. I guess this is more of an issue with the example code than this library.

Reproduction

https://codesandbox.io/s/typescript-as-prop-with-react-polymorphic-box-forked-hw0l5?file=/src/App.tsx

Expected behavior

displayName and propTypes should be allowed.

Actual behavior

displayName and propTypes are not allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions