{"id":20047438,"url":"https://github.com/balakrish001/visit-countries-reactjs","last_synced_at":"2026-05-06T16:07:19.280Z","repository":{"id":257549835,"uuid":"858611598","full_name":"Balakrish001/Visit-Countries-ReactJs","owner":"Balakrish001","description":"The app displays a list of countries, allowing users to mark countries as visited or remove them from the visited list. It dynamically updates the view based on user actions, including showing a \"No Visited Countries\" message when all visited countries are removed.","archived":false,"fork":false,"pushed_at":"2024-09-17T08:12:59.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T07:49:53.920Z","etag":null,"topics":["html-css-javascript","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Balakrish001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-17T08:07:22.000Z","updated_at":"2024-09-17T08:13:02.000Z","dependencies_parsed_at":"2024-09-17T10:47:38.881Z","dependency_job_id":"72715387-addf-481f-a677-a800b447e6f7","html_url":"https://github.com/Balakrish001/Visit-Countries-ReactJs","commit_stats":null,"previous_names":["balakrish001/visit-countries-reactjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Balakrish001/Visit-Countries-ReactJs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FVisit-Countries-ReactJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FVisit-Countries-ReactJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FVisit-Countries-ReactJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FVisit-Countries-ReactJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balakrish001","download_url":"https://codeload.github.com/Balakrish001/Visit-Countries-ReactJs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FVisit-Countries-ReactJs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32701418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-css-javascript","reactjs"],"created_at":"2024-11-13T11:36:17.572Z","updated_at":"2026-05-06T16:07:19.244Z","avatar_url":"https://github.com/Balakrish001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"The goal of this coding exam is to quickly get you off the ground with **Lists and Keys** in React JS.\n\n### Refer to the image below:\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/visit-countries-output.gif\" alt=\"visit countries\" style=\"max-width:70%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n### Design Files\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px)](https://assets.ccbp.in/frontend/content/react-js/visit-countries-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - No Visited Countries View](https://assets.ccbp.in/frontend/content/react-js/visit-countries-no-visited-countries-lg-output.png)\n\n\u003c/details\u003e\n\n### Set Up Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- Download dependencies by running `npm install`\n- Start up the app using `npm start`\n\n\u003c/details\u003e\n\n### Completion Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eFunctionality to be added\u003c/summary\u003e\n\u003cbr/\u003e\n\nThe app must have the following functionalities\n\n- Initially, the list of given countries should be displayed.\n  - If the country is not visited, it should be displayed with the **Visit** button.\n  - If the country is visited, it should be displayed with the text **Visited** and also should be displayed in the visited countries.\n- When a **Visit** button of the country is clicked,\n  - The country should be added in the visited countries.\n  - The **Visit** button of a respective country should be replaced with the text **Visited**.\n- When a **Remove** button in one of the visited countries is clicked,\n  - The respective visited country should be removed from the visited countries.\n  - The **Visited** text of a respective visited country should be replaced with a **Visit** button.\n- When all the visited countries are removed, then [No Visited Countries View](https://assets.ccbp.in/frontend/content/react-js/visit-countries-no-visited-countries-lg-output.png) should be displayed.\n- The `App` component consists of the `initialCountriesList`. It consists of a list of countries with the following properties in each country object.\n\n  |    key    | DataType |\n  | :-------: | :------: |\n  |    id     |  String  |\n  |   name    |  String  |\n  | imageUrl  |  String  |\n  | isVisited | Boolean  |\n\n\u003c/details\u003e\n\n### Important Note\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n**The following instruction is required for the tests to pass**\n\n- The image of each visited country should have the `alt` attribute value as **thumbnail**.\n\n\u003c/details\u003e\n\n### Resources\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv style=\"background-color: #161624; width: 150px; padding: 10px; color: white\"\u003eHex: #161624\u003c/div\u003e\n\u003cdiv style=\"background-color: #f8fafc; width: 150px; padding: 10px; color: black\"\u003eHex: #f8fafc\u003c/div\u003e\n\u003cdiv style=\"background-color: #334155; width: 150px; padding: 10px; color: white\"\u003eHex: #334155\u003c/div\u003e\n\u003cdiv style=\"background-color: #1f1f2f; width: 150px; padding: 10px; color: white\"\u003eHex: #1f1f2f\u003c/div\u003e\n\u003cdiv style=\"background-color: #f1f5f9; width: 150px; padding: 10px; color: black\"\u003eHex: #f1f5f9\u003c/div\u003e\n\u003cdiv style=\"background-color: #ffffff; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff\u003c/div\u003e\n\u003cdiv style=\"background-color: #3b82f6; width: 150px; padding: 10px; color: black\"\u003eHex: #3b82f6\u003c/div\u003e\n\u003cdiv style=\"background-color: #94a3b8; width: 150px; padding: 10px; color: white\"\u003eHex: #94a3b8\u003c/div\u003e\n\u003cdiv style=\"background-color: #cbd5e1; width: 150px; padding: 10px; color: black\"\u003eHex: #cbd5e1\u003c/div\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFont-families\u003c/summary\u003e\n\n- Roboto\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fvisit-countries-reactjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalakrish001%2Fvisit-countries-reactjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fvisit-countries-reactjs/lists"}