Update useError.md
This commit is contained in:
committed by
GitHub
parent
9661870d03
commit
b15a2e895e
@ -27,7 +27,7 @@ const useError = err => {
|
|||||||
```
|
```
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
Rconst ErrorButton = () => {
|
const ErrorButton = () => {
|
||||||
const dispatchError = useError();
|
const dispatchError = useError();
|
||||||
|
|
||||||
const clickHandler = () => {
|
const clickHandler = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user