Building a React application that fetches actor and actress data from external APIs, manages asynchronous responses, and dynamically displays biographical information in reusable cards.
| Repository | Project | Category | Main Focus | Exercise |
|---|---|---|---|---|
| react-api | Actors & Actresses | Exercise | React & Fetch API | 37/50 |
Build a small React application that retrieves and displays a list of actors or actresses using the provided APIs.
Choose one of the following endpoints:
Actresses
https://lanciweb.github.io/demo/api/actresses/
Actors:
https://lanciweb.github.io/demo/api/actors/
When the application loads, fetch the list of actors or actresses from the selected API and print the retrieved data to the console.
Prepare a card for each actor or actress, including the following information.
- Name
- Year of birth
- Nationality
- Biography
- Image
- Awards and recognitions
Render a card for each actor or actress on the page, using a design of your choice.
Try to implement the following additional features.
-
Display both the actresses and actors in two separate lists.
-
Display a single list containing both actors and actresses.
-
Add the actor's or actress's most famous movies to their respective cards.
AI Assistance
If this task feels too challenging, try using AI for guidance. Always make sure you understand the suggestions and the code it provides.
- Fetching data from external APIs.
- Working with asynchronous JavaScript and API responses.
- Managing application data in React.
- Rendering lists of objects dynamically.
- Building reusable React components.
- Displaying structured data and images in cards.
- Combining and organizing data from multiple sources.
Exercise assigned by Boolean Tech Academy as part of the Web Development course (Class 152, A.Y. 2025-2026).