An app where users can view countries information with search and select region features. Also, can view detailed information on a country. **TS version**
This is an app that I rebuilt with TypeScript. You can see the JS version.
An app contains search
and dropdown
features where users can use a search box to search the desired country and use the dropdown to filter countries by regions (Africa, Americas, Asia, Europe, and Oceania). The users also can click a country to view more detailed information.
The user should be able to:
input
fieldgit clone [email protected]:victoriacheng15/rest-countries-api-ts.git
cd rest-countries-api-ts
pnpm install
# or your preference of package manager
pnpm dev
TypeScript
interface
, type
, enum
, and as
.mapped types
to assign types to nested objects.useReducer
useMemo
Additionally, I wrote blogs on useReducer
and useMemo
hooks to improve my understanding of both:
I am looking to add React Testing Library for this project to solidify my knowledge of Test-Driven Development.