Skip to content

zackariae/Redi_JS_homework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redi_JS_homework

About

This repository contains a collection of mini React projects developed as part of the Redi School Intermediate JavaScript course 2024.

Projects

Movies

The Movies project is a collection of reusable React components for displaying and managing movies fetched from the Star Wars API (SWAPI). It consists of the following components:

  • MoviesTable: A component to display movies in a table format.
  • SearchBar: A component to filter movies by title, director, or episode ID.
  • Movies: A container component that integrates the MoviesTable and SearchBar components to provide a complete movies management interface.

Features

  • Fetches movies from the SWAPI.
  • Allows filtering movies by title, director, or episode ID.
  • Provides a loading spinner while fetching data.
  • Displays a message when no movies match the filter criteria.
  • Allows deleting movies from the list.

Pokemon Card App

This application serves as a practice ground for utilizing useEffect hook and making API calls using fetch with async/await syntax in React.

Preview on Codesandbox

Components

App

The primary component managing the state of captured Pokemon cards and rendering other components.

Cards

Responsible for displaying individual Pokemon cards. It fetches details of the Pokemon based on the provided ID and renders the card with the Pokemon's image and name.

HuntingBtn

A button component that triggers the hunting action to look for Pokemon. Clicking this button generates a random Pokemon ID for hunting.

Message

Displays messages to the user, such as errors or notifications.

Modal (Not Implemented Yet)

Will be used for displaying additional details or actions related to captured Pokemon cards. Currently not implemented.

Features

  • Capturing Pokemon: Users can click the "Look for any Pokemons around" button to hunt for Pokemon.
  • Displaying Pokemon Cards: Captured Pokemon cards are displayed with their images and names.
  • Error Handling: Error messages are displayed if there are issues fetching Pokemon data.
  • Loading Indicator: A loading indicator is displayed while fetching Pokemon data.

License

This project is licensed under the MIT License.

About

This repository contains a collection of mini React projects developed as part of the Redi School Intermediate JavaScript course 2024.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors