Skip to content

joewkm/StarWarsMovies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Using useState() to perform first time invocation of the api on page first load. Subsequent data fetch is invoke by user interaction.

  2. Using useCallback() in memory function to speed up app performance as data fetch function is called frequently.

  3. Error handling is wrapped around api call to handle errors.

  4. Asynchronous API invocation.

The project can be found here :

https://react-http-9b3f1.web.app/

About

Demonstrate simple API call to fetch data from an endpoint

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published