{"id":15658308,"url":"https://github.com/cassidoo/next-context-example","last_synced_at":"2025-05-05T16:42:29.715Z","repository":{"id":71451396,"uuid":"349213562","full_name":"cassidoo/next-context-example","owner":"cassidoo","description":"Here's an example of using React Context and useReducer with Next.js for state management.","archived":false,"fork":false,"pushed_at":"2021-03-18T21:46:37.000Z","size":309,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T22:25:37.899Z","etag":null,"topics":["netlify","nextjs","react"],"latest_commit_sha":null,"homepage":"https://next-context-example.netlify.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/cassidoo.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":"2021-03-18T20:50:23.000Z","updated_at":"2024-06-30T15:48:28.000Z","dependencies_parsed_at":"2023-03-17T10:15:45.082Z","dependency_job_id":null,"html_url":"https://github.com/cassidoo/next-context-example","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/cassidoo%2Fnext-context-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassidoo%2Fnext-context-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassidoo%2Fnext-context-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassidoo%2Fnext-context-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cassidoo","download_url":"https://codeload.github.com/cassidoo/next-context-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252535171,"owners_count":21763909,"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":["netlify","nextjs","react"],"created_at":"2024-10-03T13:11:49.583Z","updated_at":"2025-05-05T16:42:29.698Z","avatar_url":"https://github.com/cassidoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Context Example\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/1fa72321-d1b6-42d4-a779-333f7dc6c428/deploy-status)](https://app.netlify.com/sites/next-context-example/deploys)\n\nHere's an example of using React Context and useReducer with Next.js for state management. If you'd like to read more, [check out this blog post](https://www.netlify.com/blog/2020/12/01/using-react-context-for-state-management-in-next.js/?utm_source=twitter\u0026utm_medium=reactcontext-cs\u0026utm_campaign=devex-cs)!\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/cassidoo/next-context-example\u0026utm_source=github\u0026utm_medium=nextcontext-cs\u0026utm_campaign=devex-cs)\n\n(If you click this button, it will create a new repo for you that looks exactly like this one, and sets that repo up immediately for deployment on Netlify)\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n### Installation options\n\n**Option one:** One-click deploy\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/cassidoo/next-context-example\u0026utm_source=github\u0026utm_medium=nextcontext-cs\u0026utm_campaign=devex-cs)\n\n**Option two:** Manual clone\n\n1. Clone this repo: `git clone https://github.com/cassidoo/next-netlify-starter.git`\n2. Navigate to the directory and run `npm run dev`\n3. Make your changes\n4. Connect to [Netlify](https://url.netlify.com/Bk4UicocL) manually (the `netlify.toml` file is the one you'll need to make sure stays intact to make sure the export is done and pointed to the right stuff)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassidoo%2Fnext-context-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcassidoo%2Fnext-context-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassidoo%2Fnext-context-example/lists"}