Recent Posts

Making async api call in React useEffect

less than 1 minute read

async is the default for api calls in most of the cases. useEffect() is not an async function, so you need to handle promise to make an async api call inside.