dan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
beta/src/content/apis/react/useDebugValue.md
|
|
@ -100,7 +100,7 @@ This lets you avoid running potentially expensive formatting logic unless the co |
|
|
|
|
|
|
|
### `useDebugValue(value, format?)` {/*usedebugvaluevalue-format*/} |
|
|
|
|
|
|
|
Call `useContext` at the top level of your [custom Hook](/learn/reusing-logic-with-custom-hooks) to display a readable debug value: |
|
|
|
Call `useDebugValue` at the top level of your [custom Hook](/learn/reusing-logic-with-custom-hooks) to display a readable debug value: |
|
|
|
|
|
|
|
```js |
|
|
|
import { useDebugValue } from 'react'; |
|
|
|