@lynx-js/react / useDebugValue
函数: useDebugValue()
useDebugValue can be used to display a label for custom hooks in React DevTools.
NOTE: We don’t recommend adding debug values to every custom hook. It’s most valuable for custom hooks that are part of shared libraries.
类型参数
参数
返回
void
Version
16.8.0
参阅
https://react.dev/reference/react/useDebugValue
定义于
.pnpm/@types+react@18.3.28/node_modules/@types/react/ts5.0/index.d.ts:2090