5 lines
167 B
TypeScript
5 lines
167 B
TypeScript
/**
|
|
* React hook which returns the latest callback without changing the reference.
|
|
*/
|
|
export default function useLatestCallback<T extends Function>(callback: T): T;
|