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.
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)
light theme dark theme details
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- Sass
- TypeScript
- React - JS library
- Redux - A Predictable State Container for JS Apps
- Vite - Next Generation Frontend Tooling
- Axios - Promise based HTTP client for the browser and node.js
- ESLint - ESLint statically analyzes your code to quickly find problems
- Prettier - An opinionated code formatter
I learned variables in CSS with SCSS modules in React
// .eslintrc.cjs
module.exports = {
"rules": {
"react/react-in-jsx-scope": "off",
}
};
Next I want to learn about tests in React
- Video - This video helped me to set up vite with react, typescript, eslint, prettier configuration
- ESLint and prettier config - This site helped me to configure ESLint with Prettier.
- ESLint-config-prettier - This site helped me to fix the config problem in eslint with prettier
- Prettier Fix script - This site helped me to configure prettier fix script
- .prettierrc.js - I used this config file in prettier
- stackoverflow change colors in react-icons - This site helped me to change color of svg icon
- Website - smth about me
- Frontend Mentor - @LikeKugi
I've just completed a front-end coding challenge from @frontendmentor! 🎉
You can see my solution here: https://www.frontendmentor.io/solutions/rest-api-countries-with-typescript-react-redux-eslint-prettier-vite-fExd3OcuzA
Any suggestions on how I can improve are welcome!