{"id":19448387,"url":"https://github.com/csbun/rax-compat","last_synced_at":"2025-08-07T21:32:59.836Z","repository":{"id":150165475,"uuid":"87804529","full_name":"csbun/rax-compat","owner":"csbun","description":"React compatibility layer for Rax.","archived":false,"fork":false,"pushed_at":"2017-04-10T11:50:33.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T23:22:38.069Z","etag":null,"topics":[],"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/csbun.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":"2017-04-10T11:45:59.000Z","updated_at":"2019-08-08T02:32:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"7459ac84-ac62-4ba7-8713-8e45eece24ed","html_url":"https://github.com/csbun/rax-compat","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/csbun%2Frax-compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Frax-compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Frax-compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Frax-compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csbun","download_url":"https://codeload.github.com/csbun/rax-compat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240636663,"owners_count":19832922,"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-10T16:26:30.438Z","updated_at":"2025-02-25T08:53:26.132Z","avatar_url":"https://github.com/csbun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rax-compat\n\nThis module makes React-based modules work with [Rax](https://alibaba.github.io/rax/)(web), without any code changes.\n\n## Installation\n\nYou need to install rax-compat first through npm:\n\n```\nnpm i -S rax-compat\n```\n\nAnd have Rax already installed. If you don't, install it like:\n\n```\nnpm i -S rax\n```\n\nOr with yarn:\n\n```\nyarn add rax-compat rax\n```\n\n## Usage with Webpack\n\nAdd an alias for react and react-dom:\n\n```javascript\n{\n  resolve: {\n    alias: {\n      'react': 'rax-compat',\n      'react-dom': 'rax-compat',\n    }\n  },\n}\n```\n\nIf you are using [babel-preset-rax](https://www.npmjs.com/package/babel-preset-rax), you should overwrite plugin [babel-plugin-transform-react-jsx](https://www.npmjs.com/package/babel-plugin-transform-react-jsx) in _.babelrc_ (or babel-loader in _webpack.config.js_) with default config.\n\n```json\n{\n  \"plugins\": [ \"transform-react-jsx\" ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsbun%2Frax-compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsbun%2Frax-compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsbun%2Frax-compat/lists"}