Asynchronous calls with React.useMemo
What you really want is to re-render your component once the asynchronous call is over. Memoisation alone won’t help you achieve that. Instead you should use React’s state – it will keep the value your async call returned and it will allow you to trigger a re-render. Furthermore, triggering an async call is a side … Read more