{"id":18484164,"url":"https://github.com/jdf2e/rockact-yep-react","last_synced_at":"2025-05-13T21:13:09.030Z","repository":{"id":96112522,"uuid":"197327005","full_name":"jdf2e/rockact-yep-react","owner":"jdf2e","description":"yep-react demo project bootstrapped with rockact.","archived":false,"fork":false,"pushed_at":"2020-10-16T01:53:57.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T21:37:31.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jdf2e.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":"2019-07-17T06:16:34.000Z","updated_at":"2020-12-07T11:34:12.000Z","dependencies_parsed_at":"2023-04-30T19:16:20.528Z","dependency_job_id":null,"html_url":"https://github.com/jdf2e/rockact-yep-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Frockact-yep-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Frockact-yep-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Frockact-yep-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Frockact-yep-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdf2e","download_url":"https://codeload.github.com/jdf2e/rockact-yep-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029008,"owners_count":22002284,"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-06T12:38:47.136Z","updated_at":"2025-05-13T21:13:04.012Z","avatar_url":"https://github.com/jdf2e.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 引入 Yep-React\n\n现在从 yarn 或 npm 安装并引入 Yep-React。\n\n```bash\n$ yarn add @jdcfe/yep-react\n```\n\n修改 `src/components/Welcome/Welcome.tsx`，引入 Yep-React 的按钮组件。\n\n```tsx\nimport * as React from \"react\";\n\nimport logo from \"./logo.svg\";\nimport \"./Welcome.scss\";\nimport {Button} from '@jdcfe/yep-react';\n\nconst Welcome: React.FunctionComponent\u003c{ message: string }\u003e = props =\u003e {\n    return (\n        \u003cdiv className=\"welcome-container\"\u003e\n            \u003cimg src={logo}/\u003e\n            \u003cButton type=\"primary\"\u003e{props.message}\u003c/Button\u003e\n        \u003c/div\u003e\n    );\n};\n\nexport default Welcome;\n\n```\n\n## 安装 rocketact-plugin-yep-react\n\n```bash\n$ yarn add -D rocketact-plugin-yep-react\n```\n\n\n## run \n\n### `npm start` or `yarn start`\n\nStart development environment.\n\n### `npm run build` or `yarn build`\n\nCreate a production bundle in the `build` folder.\n\n构建出来的js已经是按需加载以后打包的代码\n并且px已经转为rem\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdf2e%2Frockact-yep-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdf2e%2Frockact-yep-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdf2e%2Frockact-yep-react/lists"}