Type alias LegacyRef<T>

LegacyRef<T>: string | Ref<T>

A legacy implementation of refs where you can pass a string to a ref prop.

See

React Docs

Example

<div ref="myRef" />

Type Parameters

  • T

Generated using TypeDoc