{"id":20806728,"url":"https://github.com/fed/redux-example","last_synced_at":"2025-10-16T05:37:10.407Z","repository":{"id":85048455,"uuid":"64530223","full_name":"fed/redux-example","owner":"fed","description":"Building a simple counter example to illustrate how Redux works","archived":false,"fork":false,"pushed_at":"2016-10-23T09:57:39.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T03:43:07.839Z","etag":null,"topics":[],"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/fed.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":"2016-07-30T06:36:54.000Z","updated_at":"2017-01-11T04:26:05.000Z","dependencies_parsed_at":"2023-03-08T17:30:42.724Z","dependency_job_id":null,"html_url":"https://github.com/fed/redux-example","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fed/redux-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fredux-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fredux-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fredux-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fredux-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fed","download_url":"https://codeload.github.com/fed/redux-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fredux-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279159535,"owners_count":26116492,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-17T19:24:56.736Z","updated_at":"2025-10-16T05:37:10.361Z","avatar_url":"https://github.com/fed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redux Example\n\nWe know that React is just for views (often referred to as the `V` in `MVC`). The obvious question then is, where do I put all my state and logic?\n\nYou may already be aware of [Flux](https://facebook.github.io/flux/), which is a style / pattern / architecture for designing web applications. There are several frameworks out there that implement the ideas of Flux, one of them being [Redux](http://redux.js.org/).\n\nHere's a very brief description of how Redux works:\n\n1. **Components** are given callback functions as props, which they call when a **UI event** happens.\n2. Those callbacks **create and dispatch actions** based on the event.\n3. **Reducers** process the actions, computing the new state.\n4. The new **state** of the whole application goes into a **single store**.\n5. **Components** receive the new state as props and **re-render themselves *where needed***.\n\nMost of the above concepts are not unique to Redux, but Redux implements them in a very clean and simple way, with a [tiny API](http://redux.js.org/docs/api/index.html).\n\n## Development Tasks\n\n| Command | Description |\n|---------|-------------|\n| `npm install` | Fetch dependencies and build binaries for any of the modules |\n| `npm start` | Fire up Webpack Dev Server, app will go live on `http://localhost:6789` |\n| `npm run clean` | Remove `build` directory |\n| `npm run build` | Build `bundle.js` file |\n| `npm test` | Run test suite |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffed%2Fredux-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffed%2Fredux-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffed%2Fredux-example/lists"}