To deploy this project run
npm i request-axios-fozilkhon
import request from 'request-axios-fozilkhon'
Install my-project with npm
useQuery(["getUsers"], () => request({url: 'https://jsonplaceholder.typicode.com/users'}), {
onSuccess: (res) => {
console.log(res, 'qale azizbek aka ');
},
onError: (err) => console.log(err, "getUsers"),
});
Parameter | Type | Description |
---|---|---|
url |
string |
Bu bekend url yuvorishlik uchun |
method |
string |
default 'get', 'POST', 'DELETE', 'PUT' |
body |
string |
Bu bekend data yuvorishlik uchun |
headers |
string |
Authorization qilishlik uchun |