To show how useEffect
is used with fetching data.
- Five random photos are fetched from the NASA daily photo API and showed on the screen.
- There is a Refresh button to fetch another five random photos.
To show how useEffect
is used with fetching data.