7 lines
284 B
TypeScript
7 lines
284 B
TypeScript
|
/**
|
||
|
* Hook keeping track of a given value from a previous execution of the component the Hook is used in.
|
||
|
*
|
||
|
* See [React Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state)
|
||
|
*/
|
||
|
export declare function usePrevious<T>(value: T): T | undefined;
|