# useRafState > useState whose updates are batched to the next animation frame. - Category: State - Package: `hookli` (install with `npm i hookli`) - Docs: https://hookli.vercel.app/docs/use-raf-state ## Signature ```ts useRafState(initialState: T | (() => T)): [T, Dispatch>] ```