phaser-jsx
Version:
Use JSX in Phaser.
9 lines • 553 B
TypeScript
import type { RefObject } from 'react';
/**
* A hook that lets you reference a value that’s not needed for rendering.
*
* @param initialValue - The value you want the ref object’s current property to be initially. It can be a value of any type. This argument is ignored after the initial render.
* @returns - Returns an object with a single property `current` (initially set to the `initialValue` you have passed).
*/
export declare function useRef<Type>(initialValue?: Type | null): RefObject<Type | null>;
//# sourceMappingURL=useRef.d.ts.map