@lynx-js/react / useCallback

函数: useCallback()

function useCallback<T>(callback: T, deps: DependencyList): T

useCallback will return a memoized version of the callback that only changes if one of the inputs has changed.

类型参数

类型参数
T extends Function

参数

范围类型
callbackT
depsDependencyList

返回

T

Version

16.8.0

参阅

https://react.dev/reference/react/useCallback

定义于

.pnpm/@types+react@18.3.28/node_modules/@types/react/ts5.0/index.d.ts:2070

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。