useAsync hook with cache
It's good practice to show the user that the app is loading data. This is done by showing a loading...
Tags: javascript, react, async, reacthooks