A React Application showing all the countries of the world fetching data from a API. 😻
Live Link (Hosted Using Render)
This is a challenge from Front End Mentor
- React
- Redux
- React Router v6
- React Hooks
- Country Api
- SASS ( for styling )
Rest Country Api is used to fetch all the data. Fetching is done in three ways:-
-
All the data with limited options.
-
Data of a particular country by name.
-
Data of a list of countries by their codes.
React Hooks
are used to mount the data after calling them. And updating only if needed.
There are two
main pages in this application.
- Homepage
- Details Page
This Detail page is dynamic ( passing country name as
url
asparameter
) and display the detail of the country user wish to view.
Also We can go back with the Go Back
Button.
We can route throgh borders
in the details page
There is 404 Page
- We can search data by
Name
- We can filter data by
Region
This all features are setup using Redux
. There are dedicated dispatch
functions for many events.
If the Searched country is not found, it displays a error message
- There is Theme Preference choice.
- There are small microanimations.
- There is a special load more button on the home page which, on click, shows more countries. [ This is hidden if all the countries are displayed ]
Hey!! I am Pranay Raj. I am passionate in Web Devlopment and Making Creative Projects is like my hobby :)
You can connect me: