This repository contains a React application that displays a list of countries and some of their details. The app uses the useFetch
custom hook to fetch data from a public API and useReducer
to manage the state of the countries.
- Clone this repository using
git clone https://github.com/signal-tenet/countries-app.git
- Navigate into the project directory using
cd countries-app
- Install dependencies using
npm install
- Run the application using
npm start
- Access the application by visiting
http://localhost:3000
in your browser
This React application allows users to search, sort, and view country data from a REST API. The app fetches the country data using a custom hook called useFetch
and displays it in a table. Users can search for countries by name or capital city, sort the table in ascending or descending order by country name, and delete countries from the app (not the API).
This application was built using the following technologies:
- React
- React Hooks
- HTML
- CSS
- RESTful APIs
The application is composed of the following components:
Header
: Displays the header of the application.Countries
: Renders the list of countries and their details.Country
: Renders the details of a single country.Footer
: Displays the footer of the application.
This application uses the REST Countries API to fetch data about countries. The data is fetched using the useFetch
custom hook and stored in the application state using useReducer
.
https://scintillating-smakager-9d7c2e.netlify.app/
This application was created by:
This project is licensed under the MIT License.