Skip to content

[@types/react] RefObject.current should no longer be readonly #31065

@bschlenk

Description

@bschlenk

It is now okay to assign to ref.current, see example: https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variables

Trying to assign a value to it gives the error: Cannot assign to 'current' because it is a constant or a read-only property.

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