UNPKG

@rbxts/pretty-react-hooks

Version:
9 lines (8 loc) 349 B
import { Binding } from "@rbxts/react"; /** * Returns the value of a binding. If the binding updates, the component will * be re-rendered. Non-binding values will be returned as-is. * @param binding The binding to get the value of. * @returns The value of the binding. */ export declare function useBindingState<T>(binding: T | Binding<T>): T;