good day po .. tanong ko lang po ..
ano po bang ibig sabihin ng ASYNC po dito ? bakit po need nati gumamit ng ASYNC ?
const fetchUsers = async() => {
const headers = { 'Content-Type': 'application/json' }
fetch("You do not have permission to view the full content of this post. Log in or register now.", { headers })
.then(res => res.json())
.then(resJson => setList(resJson.data))
.catch(error=>alert(error))
}
salamat po <3
ano po bang ibig sabihin ng ASYNC po dito ? bakit po need nati gumamit ng ASYNC ?
const fetchUsers = async() => {
const headers = { 'Content-Type': 'application/json' }
fetch("You do not have permission to view the full content of this post. Log in or register now.", { headers })
.then(res => res.json())
.then(resJson => setList(resJson.data))
.catch(error=>alert(error))
}
salamat po <3