We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160d01a commit 7b7329dCopy full SHA for 7b7329d
README.md
@@ -322,7 +322,7 @@ Here's an example:
322
```javascript
323
function Greeting() {
324
const [greeting, setGreeting] = React.useState(null)
325
- const handleError = useHandleError()
+ const handleError = useErrorHandler()
326
327
function handleSubmit(event) {
328
event.preventDefault()
@@ -367,7 +367,7 @@ Alternatively, let's say you're using a hook that gives you the error:
367
368
const [name, setName] = React.useState('')
369
const {greeting, error} = useGreeting(name)
370
- useHandleError(error)
+ useErrorHandler(error)
371
372
373
0 commit comments