@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
9 lines (8 loc) • 349 B
TypeScript
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;