{"id":20261989,"url":"https://github.com/s-babaeizadeh/react.js-usereducer","last_synced_at":"2026-01-26T23:36:47.968Z","repository":{"id":256242612,"uuid":"854701152","full_name":"s-babaeizadeh/React.js-useReducer","owner":"s-babaeizadeh","description":"An example of how to use the useReducer hook in a React application.","archived":false,"fork":false,"pushed_at":"2024-10-14T09:04:41.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T10:45:52.825Z","etag":null,"topics":["reactjs","shadcn-ui","tailwindcss","typescript","usereducer"],"latest_commit_sha":null,"homepage":"https://react-js-use-reducer-geik.vercel.app","language":"TypeScript","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/s-babaeizadeh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-09T16:21:04.000Z","updated_at":"2024-10-19T19:07:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"847f219c-ce25-42e7-9f10-b8fb31013da3","html_url":"https://github.com/s-babaeizadeh/React.js-useReducer","commit_stats":null,"previous_names":["s-babaeizadeh/react.js-usereducer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s-babaeizadeh/React.js-useReducer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-babaeizadeh%2FReact.js-useReducer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-babaeizadeh%2FReact.js-useReducer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-babaeizadeh%2FReact.js-useReducer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-babaeizadeh%2FReact.js-useReducer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-babaeizadeh","download_url":"https://codeload.github.com/s-babaeizadeh/React.js-useReducer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-babaeizadeh%2FReact.js-useReducer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28791189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"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":["reactjs","shadcn-ui","tailwindcss","typescript","usereducer"],"created_at":"2024-11-14T11:27:59.009Z","updated_at":"2026-01-26T23:36:47.950Z","avatar_url":"https://github.com/s-babaeizadeh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eReact.js-useReducer\u003c/h1\u003e\n\u003cp\u003eThe useReducer hook in React is a powerful tool for managing complex state logic in a component, particularly when combined with TypeScript for enhanced type safety. By defining a reducer function that takes the current state and an action as arguments, developers can create predictable state transitions that simplify debugging and improve maintainability. For instance, in a simple counter application, useReducer allows users to increment, decrement, or reset the count through clearly defined actions, making the state management process more organized and scalable. This approach not only centralizes logic but also leverages TypeScript's static typing, ensuring that state and actions are correctly structured, which ultimately leads to cleaner and more reliable code.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-babaeizadeh%2Freact.js-usereducer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-babaeizadeh%2Freact.js-usereducer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-babaeizadeh%2Freact.js-usereducer/lists"}