{"id":20530097,"url":"https://github.com/ezmiller/react-starter-state-reducer","last_synced_at":"2026-04-24T05:39:00.610Z","repository":{"id":141690710,"uuid":"163345770","full_name":"ezmiller/react-starter-state-reducer","owner":"ezmiller","description":"A starter for simple React projects based on the state reducer pattern.","archived":false,"fork":false,"pushed_at":"2018-12-27T23:52:27.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T02:23:34.662Z","etag":null,"topics":["boilerplate-template","react","state-reducer"],"latest_commit_sha":null,"homepage":null,"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/ezmiller.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":"2018-12-27T23:52:10.000Z","updated_at":"2018-12-27T23:53:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"c54b51d8-78f9-41d4-b99e-2ff62934b977","html_url":"https://github.com/ezmiller/react-starter-state-reducer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ezmiller/react-starter-state-reducer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezmiller%2Freact-starter-state-reducer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezmiller%2Freact-starter-state-reducer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezmiller%2Freact-starter-state-reducer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezmiller%2Freact-starter-state-reducer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezmiller","download_url":"https://codeload.github.com/ezmiller/react-starter-state-reducer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezmiller%2Freact-starter-state-reducer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32211381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"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":["boilerplate-template","react","state-reducer"],"created_at":"2024-11-15T23:35:26.123Z","updated_at":"2026-04-24T05:39:00.590Z","avatar_url":"https://github.com/ezmiller.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-starter-state-reducer\n\n## Summary\n\nThis is a starter package for bootstrapping a react project.\n\nIt is based on create-react-app and also includes:\n\n- react-testing-library\n- lodash\n\nFor state managament, it has the barebones of a state management approach based on a the State Reducer pattern:\n\n1. App is loaded with two props:\n\n   - `initialState` - Application level state object.\n   - `stateReducer` - A reducer function that is provided the current state and an `updater` object (akin to a redux action) and that based on this can update the state object.\n\n2. `App` is equipped with a `setInternalState` function to be called in place of `setState` and which takes an `updater` object or function and a callback. `setInternalState` calls `setState`, but before it does so it generates a set of changes by passing the updater through `this.props.stateReducer`.\n\n3. The `initialState` and `stateReducer` are defined in a file `state.js`. Updater functions can be placed in a file `updater.js`.\n\n4. Note that the `stateReducer` must **always** return the original state by default when no change is in order.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezmiller%2Freact-starter-state-reducer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezmiller%2Freact-starter-state-reducer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezmiller%2Freact-starter-state-reducer/lists"}