Notifications

Country quiz

9 months ago
.
edited

TypeScript × Next.js × emotion.

※Regarding the REST COUNTRIES API, the assignment guide said it was https://restcountries.eu/, but I heard that it has become a subscription API, so I used the open source version, https://restcountries.com/.

Overview

First, choose a region.
You will be asked 10 quizzes about the countries belonging to the region you selected.

There are two types of quizzes as follows

  • Questions about capital cities
  • Questions about the name of the country from its flag

learned/improved

  • How to use ReturnType to get the function's return type.
  • How to combine useContext and custom hooks.
  • Basic usage of the REST COUNTRIES API.

Preview