React hooks


Download 0.85 Mb.
Sana14.12.2022
Hajmi0.85 Mb.
#1002245
Bog'liq
React2 3 apicalls

API calls

ASYNC vs SYNC

Promise

  • const a = new Promise()

Function( resolve, reject ){ code ….. }
resolve
then(res=()=>{})

ASYNC

Request

url

  • url
  • method

Backend

AXIOS

  • axios.get() post,delete,put
  • axios({})
  • axios.create()

Download 0.85 Mb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling