A React application that displays country information using the REST Countries API.
npm installnpm run devThe app will be available at http://localhost:5173 (or the port shown in the terminal).
npm run buildnpm run preview├── src/
│ ├── api/
│ │ └── fetchCountry.js # API fetching logic
│ ├── components/
│ │ └── CountryCard.jsx # Country display component
│ ├── App.jsx # Main app component
│ └── main.jsx # React entry point
├── index.html # HTML template
├── styles.css # Global styles
├── package.json # Dependencies and scripts
└── vite.config.js # Vite configuration
- Fetches country data from REST Countries API
- Displays country information in a formatted card
- Automatically loads Japan data on page load
- Loading and error states
- React 18
- Vite (build tool)
- REST Countries API