{"id":15504682,"url":"https://github.com/alanbsmith/cog-spinner","last_synced_at":"2025-03-28T18:44:15.546Z","repository":{"id":78447972,"uuid":"127238749","full_name":"alanbsmith/cog-spinner","owner":"alanbsmith","description":"an example app using React's context API","archived":false,"fork":false,"pushed_at":"2018-03-29T15:57:16.000Z","size":231,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T19:33:27.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://alanbsmith.github.io/cog-spinner/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alanbsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-29T04:59:08.000Z","updated_at":"2018-03-29T18:11:36.000Z","dependencies_parsed_at":"2023-05-15T18:00:43.540Z","dependency_job_id":null,"html_url":"https://github.com/alanbsmith/cog-spinner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Fcog-spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Fcog-spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Fcog-spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Fcog-spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alanbsmith","download_url":"https://codeload.github.com/alanbsmith/cog-spinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246083080,"owners_count":20720908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-02T09:19:34.224Z","updated_at":"2025-03-28T18:44:15.541Z","avatar_url":"https://github.com/alanbsmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cog Spinner\n\n_an example app using React's context API_\n\n## Live Demo!\n\nYou can view this demo live [here](https://alanbsmith.github.io/cog-spinner/)!\n\n## Overview\n\nThis is an example repo to demo React's context API and the compound component pattern. This was intentionally built in a progression for you to follow along:\n\n* Step 0 - initial setup with functioning components\n* Step 1 - initial refactor\n* Step 2 - add context API\n* Step 3 - final refactor\n\n### STEP 0\n\nInitial setup with functioning components\n\nTo view this step:\n\n```sh\n$ git checkout initial-setup\n```\n\n### STEP 1\n\nInitial refactor to extract cog-related components from App\n\nTo view this step:\n\n```sh\n$ git checkout step-one\n```\n\n### STEP 2\n\nAdd context API but not cleaned up\n\nTo view this step:\n\n```sh\n$ git checkout step-two\n```\n\n### STEP 3\n\nFinal refactor with additional code comments\n\nTo view this step:\n\n```sh\n$ git checkout step-three\n```\n\n## Up \u0026 Running\n\nInstall dependencies:\n\n```\n$ yarn install\n```\n\nFire up a development server:\n\n```\n$ yarn start\n```\n\nOnce the server is running, you can visit `http://localhost:8080/`\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanbsmith%2Fcog-spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanbsmith%2Fcog-spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanbsmith%2Fcog-spinner/lists"}