Skip to content

Commit

Permalink
docs: fix useErrorHandler typos (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
razh committed Jul 21, 2020
1 parent 160d01a commit 7b7329d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ Here's an example:
```javascript
function Greeting() {
const [greeting, setGreeting] = React.useState(null)
const handleError = useHandleError()
const handleError = useErrorHandler()

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

function handleSubmit(event) {
event.preventDefault()
Expand Down

0 comments on commit 7b7329d

Please sign in to comment.