Skip to content

Commit

Permalink
updated the useAxios page
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarAdel committed Mar 29, 2024
1 parent 7004555 commit d37bab1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/useAxios.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,3 @@ export default FormSubmitExample;
In the first example, the `useAxios` hook is utilized to perform an HTTP GET request for data fetching. The `runAxios` function is called to initiate the request, and loading and error states are managed accordingly. Additionally, a button is provided to manually trigger the request, with disabled state based on `loading`.

In the second example, the `useAxios` hook is utilized to perform an HTTP POST request for form submission. The `runAxios` function is called to initiate the request when the form is submitted, and loading and error states are managed accordingly. The submit button is disabled based on `isExecuting` to prevent multiple submissions while the request is in progress. Additionally, any errors that occur during form submission are displayed to the user.

```
```

0 comments on commit d37bab1

Please sign in to comment.