Skip to content

React.RefForwardingComponent deprecated #6

@fgblomqvist

Description

@fgblomqvist

Describe the bug
The custom type suggested:

declare module '*.svg' {
  const ref: React.RefForwardingComponent<
    SVGSVGElement,
    React.SVGAttributes<SVGSVGElement>
  >
  export default ref
}

Uses the deprecated property RefForwardingComponent.

Expected behavior
I'm not sure what the proper replacement/migration is.

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