From d37bab113ad7d6b8c1bb7ae8e4433ef6cac5a2f3 Mon Sep 17 00:00:00 2001 From: Heisenberg Date: Fri, 29 Mar 2024 15:07:47 +0200 Subject: [PATCH] updated the useAxios page --- src/useAxios.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/useAxios.md b/src/useAxios.md index 31fe057..26c9b5b 100644 --- a/src/useAxios.md +++ b/src/useAxios.md @@ -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. - -``` - -```