StarWarsMovies
The purpose of this project is to demonstrate a simple api call to fetch data from a public endpoint : 'https://swapi.dev/api/films/' and display its content on the browser.
Project demonstrated the following:
-
Using useState() to perform first time invocation of the api on page first load. Subsequent data fetch is invoke by user interaction.
-
Using useCallback() in memory function to speed up app performance as data fetch function is called frequently.
-
Error handling is wrapped around api call to handle errors.
-
Asynchronous API invocation.
The project can be found here :