# useDefault > useState that falls back to a default when the value is nullish. - Category: State - Package: `hookli` (install with `npm i hookli`) - Docs: https://hookli.vercel.app/docs/use-default ## Signature ```ts useDefault(initialValue: T | null | undefined, defaultValue: T): [T, (value: T | null | undefined) => void] ```