1.0.3 • Published 2 years ago

request-axios-fozilkhon v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

generic axios fozilkhon

Installation

To deploy this project run

  npm i request-axios-fozilkhon
  import request from 'request-axios-fozilkhon'

Use generic axios

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"),
  });

Parametrs

ParameterTypeDescription
urlstringBu bekend url yuvorishlik uchun
methodstringdefault 'get', 'POST', 'DELETE', 'PUT'
bodystringBu bekend data yuvorishlik uchun
headersstringAuthorization qilishlik uchun
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago