{"id":28229301,"url":"https://github.com/eonova/mini-react","last_synced_at":"2026-04-12T16:05:43.601Z","repository":{"id":229339747,"uuid":"775467729","full_name":"eonova/mini-react","owner":"eonova","description":"Implement a simplified version of React —— 实现一个简化版React🦄","archived":false,"fork":false,"pushed_at":"2024-04-10T10:58:19.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T16:08:29.757Z","etag":null,"topics":["mini","practice","react","vitest"],"latest_commit_sha":null,"homepage":"https://mini-react.leostar.top","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/eonova.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},"funding":{"open_collective":"LeoStar","ko_fi":"leostar"}},"created_at":"2024-03-21T12:54:46.000Z","updated_at":"2024-04-07T16:32:43.000Z","dependencies_parsed_at":"2024-04-06T18:25:52.791Z","dependency_job_id":"188716a8-85aa-45a0-bfd2-d3ff4c4a15f2","html_url":"https://github.com/eonova/mini-react","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"a2a0e6ae2478287934752d95b004052029ad0e9b"},"previous_names":["ileostar/mini-react","eonova/mini-react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonova%2Fmini-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonova%2Fmini-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonova%2Fmini-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonova%2Fmini-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eonova","download_url":"https://codeload.github.com/eonova/mini-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonova%2Fmini-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258450273,"owners_count":22702937,"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":["mini","practice","react","vitest"],"created_at":"2025-05-18T16:08:28.730Z","updated_at":"2026-04-12T16:05:43.544Z","avatar_url":"https://github.com/eonova.png","language":"JavaScript","funding_links":["https://opencollective.com/LeoStar","https://ko-fi.com/leostar"],"categories":[],"sub_categories":[],"readme":"# mini-react\n\n实现最简的React\n\n## Tasks State\n\n### day 1 实现最简 mini-react\n\n- [x] 实现一个最简单的react\n- [x] jsx\n\n### day 2 任务调度器 \u0026 fiber架构\n\n- [x] 实现任务调度器\n- [x] 实现fiber架构\n\n### day 3 统一提交 \u0026 实现 function component\n\n- [x] 实现统一提交\n- [x] 实现function component\n\n### day 4 进军 vdom 的更新\n\n- [x] 实现事件绑定\n- [x] 实现更新Props\n\n### day 5 击杀 update children\n\n- [x] diff-更新children\n- [x] diff-删除多余的老节点\n- [x] 解决edge case的方式\n- [x] 优化更新-减少不必要的计算\n\n### day 6 搞定 useState\n\n- [x] 实现 useState\n- [x] 批量执行 action\n- [x] 提前检测 减少不必要更新\n\n### day 7 搞定 useEffect\n\n- [x] 实现 useEffect\n- [x] 实现 cleanup\n\n## day 8 实现 todo-list\n\n- [x] 实现 todo-list\n\n## Directory structure\n\n```text\n├── .vscode               // vscode配置\n├── packages              // mini-react\n│   ├── react\n│   └── react-dom\n├── playground            // 测试项目\n│   ├── public\n│   ├── src\n│   ├── index.html\n│   └── package.json\n├── .editorconfig         // IDE配置文件\n├── .gitignore            // git忽略文件\n├── LICENSE              // 许可证\n├── README.md             // 项目说明文件\n├── packages.json         // 项目配置文件\n├── pnpm-lock.yaml        // pnpm依赖文件\n└── pnpm-workspace.yaml   // pnpm monorepo配置文件\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonova%2Fmini-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feonova%2Fmini-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonova%2Fmini-react/lists"}