UNPKG

phaser-jsx

Version:
11 lines 463 B
/** * A hook that lets you manage state for your game object. * * When the state is updated via the setter, it triggers a re-render * of the associated game object. * * @param initialValue - The initial value for the state. * @returns - An array with the current state value and a setter function. */ export declare function useState<Type>(initialValue: Type): [Type, (value: Type | ((prev: Type) => Type)) => void]; //# sourceMappingURL=useState.d.ts.map