{"id":18332199,"url":"https://github.com/canfoo/react-wxapp","last_synced_at":"2025-04-06T03:33:41.218Z","repository":{"id":239789423,"uuid":"391499845","full_name":"canfoo/react-wxapp","owner":"canfoo","description":"使用React语法构建微信小程序的原理","archived":false,"fork":false,"pushed_at":"2021-12-18T08:27:28.000Z","size":118,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T16:21:20.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/canfoo.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-08-01T01:54:03.000Z","updated_at":"2024-06-18T15:16:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7894a0b-c975-4d8b-9376-618d7c58110c","html_url":"https://github.com/canfoo/react-wxapp","commit_stats":null,"previous_names":["canfoo/react-wxapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfoo%2Freact-wxapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfoo%2Freact-wxapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfoo%2Freact-wxapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfoo%2Freact-wxapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canfoo","download_url":"https://codeload.github.com/canfoo/react-wxapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430838,"owners_count":20937873,"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":[],"created_at":"2024-11-05T19:38:00.929Z","updated_at":"2025-04-06T03:33:37.505Z","avatar_url":"https://github.com/canfoo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## React语法构建小程序\n\u003e 本项目纯属学习之用，目的是为了让大家了解原理，因此功能实现不齐全，切不可以投入到实际业务进行使用！\n\n本项目简单实现了React语法构建小程序的过程，即将src目录的React计数器运行至小程序平台，分别通过两种方式实现：一种是编译时方式实现（代码目录：`packages/compile-core`），另一种是运行时方式实现（代码目录：`packages/runtime-core`）。想要了解更多实现细节可阅读此文章：[https://juejin.cn/post/7042700848559816717](https://juejin.cn/post/7042700848559816717)。\n\n## 如何使用\n安装依赖\n\n```\nnpm install\n```\n\n重编译构建（构建成功后用微信开发者工具导入 /dist/compile 目录）\n\n```\nnpm run build:compile\n```\n\n\n重运行构建（构建成功后用微信开发者工具导入 /dist/runtime 目录）\n\n```\nnpm run build:runtime\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanfoo%2Freact-wxapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanfoo%2Freact-wxapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanfoo%2Freact-wxapp/lists"}