Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 2.47 KB

README.md

File metadata and controls

80 lines (50 loc) · 2.47 KB

Frontend Mentor - REST Countries API with color theme switcher solution

This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

In this project I learned how to use React Router and other React Hooks.

The challenge

Users should be able to:

  • See all countries from the API on the homepage
  • Search for a country using an input field
  • Filter countries by region
  • Click on a country to see more detailed information on a separate page
  • Click through to the border countries on the detail page
  • Toggle the color scheme between light and dark mode (optional)

Screenshot

Light Mode

Links

Built with

  • Semantic HTML5 markup
  • SCSS
  • Flexbox
  • React - JS library

What I learned

I learned how to use React Router Hook and what's the purpose of useCallback hook.

Useful resources

  • SASS Guidlines - This helped me to learn SASS file structuring, mixins etc.

Installation

npm install

This command installs a package and any packages that it depends on.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Live Demo

Click here to see live demo