How can I use async await in client components?
Unanswered
West African Lion posted this in #help-forum
West African LionOP
as I wrote in the title
1 Reply
Siricid woodwasp
Inside a useEffect declare a function with async and inside it call your api witg await and when you done call your function inside your useEffect(not inside your function) ps: make your useEffect trigger once []