Skip to content

Commit 7b7329d

Browse files
authored
docs: fix useErrorHandler typos (#60)
1 parent 160d01a commit 7b7329d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Here's an example:
322322
```javascript
323323
function Greeting() {
324324
const [greeting, setGreeting] = React.useState(null)
325-
const handleError = useHandleError()
325+
const handleError = useErrorHandler()
326326

327327
function handleSubmit(event) {
328328
event.preventDefault()
@@ -367,7 +367,7 @@ Alternatively, let's say you're using a hook that gives you the error:
367367
function Greeting() {
368368
const [name, setName] = React.useState('')
369369
const {greeting, error} = useGreeting(name)
370-
useHandleError(error)
370+
useErrorHandler(error)
371371

372372
function handleSubmit(event) {
373373
event.preventDefault()

0 commit comments

Comments
 (0)