{"id":19648573,"url":"https://github.com/wilsonkinyua/hackerrank-react-slideshow-interview-app","last_synced_at":"2026-04-26T20:32:07.893Z","repository":{"id":117122381,"uuid":"544089282","full_name":"WilsonKinyua/hackerrank-react-slideshow-interview-app","owner":"WilsonKinyua","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-01T16:09:01.000Z","size":2347,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T11:17:32.405Z","etag":null,"topics":["hackerrank","interview-questions","react"],"latest_commit_sha":null,"homepage":"https://hackerrank-react-slideshow-interview-app.vercel.app/","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/WilsonKinyua.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":"2022-10-01T16:07:23.000Z","updated_at":"2024-03-26T03:00:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"8747e15f-7764-4116-86f7-0bb067541830","html_url":"https://github.com/WilsonKinyua/hackerrank-react-slideshow-interview-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WilsonKinyua/hackerrank-react-slideshow-interview-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilsonKinyua%2Fhackerrank-react-slideshow-interview-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilsonKinyua%2Fhackerrank-react-slideshow-interview-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilsonKinyua%2Fhackerrank-react-slideshow-interview-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilsonKinyua%2Fhackerrank-react-slideshow-interview-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WilsonKinyua","download_url":"https://codeload.github.com/WilsonKinyua/hackerrank-react-slideshow-interview-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilsonKinyua%2Fhackerrank-react-slideshow-interview-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: 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":["hackerrank","interview-questions","react"],"created_at":"2024-11-11T14:49:02.323Z","updated_at":"2026-04-26T20:32:07.874Z","avatar_url":"https://github.com/WilsonKinyua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React: Slideshow App\n\n## Environment \n\n- React Version: 16.13.1\n- Node Version: ^12.18.3\n- Default Port: 8000\n\n## Project Specifications \n\nCreate a basic slideshow application, as shown below. Application requirements are given below, and the finished application must pass all of the unit tests.\n\n![Gif](https://hrcdn.net/s3_pub/istreet-assets/j3Q6jXZ3DOOPRlCs9hFcnQ/slideshow.gif)\n\nYour task is to complete the implementation of `src/components/Slides.js` according to the following requirements:\n\n- The Slides component takes an array of slides as a prop. Each element of this array denotes a single slide and is an object with 2 properties: string title and string text.\n- On application launch, the first slide must be rendered.\n- Clicking on the \"Next\" button shows the next slide. This button is disabled when the current slide is the last one.\n- Clicking on the \"Prev\" button shows the previous slide. This button is disabled when the current slide is the first one.\n- Clicking on the \"Restart\" button returns to the first slide. This button is disabled when the current slide is the first one.\n- You can assume that the passed slides array contains at least one slide.\n\n\nInitially, the file is filled with boilerplate code. Note the following:\n\n- The \"Restart\" button must have `data-testid=\"button-restart\"`.\n- The \"Prev\" button must have `data-testid=\"button-prev\"`.\n- The \"Next\" button must have `data-testid=\"button-next\"`.\n- Each slide's title must be rendered as an `\u003ch1\u003e` element with `data-testid=\"title\"`.\n- Each slide's text must be rendered as a `\u003cp\u003e` element with `data-testid=\"text\"`.\n\nPlease note that the component has the above data-testid attributes for test cases and certain classes and ids for rendering purposes. It is advised not to change them.\n\n**Read-Only Files**\n- `src/App.test.js`\n\n**Commands**\n- run: \n```bash\nbash bin/env_setup \u0026\u0026 . $HOME/.nvm/nvm.sh \u0026\u0026 npm start\n```\n- install: \n```bash\nbash bin/env_setup \u0026\u0026 . $HOME/.nvm/nvm.sh \u0026\u0026 npm install\n```\n- test: \n```bash\nbash bin/env_setup \u0026\u0026 . $HOME/.nvm/nvm.sh \u0026\u0026 npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonkinyua%2Fhackerrank-react-slideshow-interview-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilsonkinyua%2Fhackerrank-react-slideshow-interview-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonkinyua%2Fhackerrank-react-slideshow-interview-app/lists"}