{"id":15105162,"url":"https://github.com/rajasegar/ember-react-ts","last_synced_at":"2026-01-27T19:29:38.108Z","repository":{"id":246741692,"uuid":"822404761","full_name":"rajasegar/ember-react-ts","owner":"rajasegar","description":"React Typescript components in Ember","archived":false,"fork":false,"pushed_at":"2024-07-02T03:43:05.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T22:31:37.392Z","etag":null,"topics":["components","ember","ember-addon","react","typescript"],"latest_commit_sha":null,"homepage":"","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/rajasegar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-07-01T05:07:50.000Z","updated_at":"2024-07-02T03:43:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d137008-9780-4a2c-be3f-3c979b42b95d","html_url":"https://github.com/rajasegar/ember-react-ts","commit_stats":null,"previous_names":["rajasegar/ember-react-ts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajasegar","download_url":"https://codeload.github.com/rajasegar/ember-react-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239978015,"owners_count":19728271,"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":["components","ember","ember-addon","react","typescript"],"created_at":"2024-09-25T20:21:29.315Z","updated_at":"2026-01-27T19:29:33.081Z","avatar_url":"https://github.com/rajasegar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-react-ts\n==============================================================================\n\nEmber addon to use React Functional components inside Ember apps.\n\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.20 or above\n* Ember CLI v3.20 or above\n* Node.js v12 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-react-ts\n```\n\nCompatibility\n------------------------------------------------------------------------------\n\nThis addon requires Ember CLI 3.20 or higher.\n\nUsage\n------------------------------------------------------------------------------\n\nThis addon provides a wrapper function that allows a React element to be rendered in Ember.\n\nAs an example, you can create a component like this:\n\n```javascript\n// app/components/my-react-component.tsx\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport WithEmberSupport from 'ember-react-ts';\n\nexport default WithEmberSupport(function MyReactComponent(props) {\n  const { name, children } = props;\n\n  return (\n    \u003cdiv\u003e\n      \u003cp\u003eHello {name}\u003c/p\u003e\n      {children}\n    \u003c/div\u003e\n  );\n});\n\n\n\n```\n\nAnd render it like this:\n\n```handlebars\n\u003cMyReactComponent @name='Raja' /\u003e\n```\n\nThat would create a component that renders `Hello, Raja`.\n\n\nComponent Blueprints\n--------------------\nYou can generate React components using the `ember g` command like this:\n```\nember g react-component hello-world\n```\n\nThis will create a new React component `hello-world.tsx` inside `app/components` folder.\nIn your templates you can use it like \n```handlebars\n\u003cHelloWord /\u003e\n```\n\nOptions\n------------------------------------------------------------------------------\n\n* `outputFile` option imports `react` and `react-dom` into a separate file than `/assets/vendor.js`. This is useful if your entire Ember application doesn't require `react`. The separate file containing `react` and `react-dom` can be imported via a template or initializer.\n\n```javascript\n// ember-cli-build.js\nlet app = new EmberApp(defaults, {\n  'ember-react-components': {\n    outputFile: '/assets/react.js'\n  }\n});\n```\n\nWhat all is this addon doing?\n------------------------------------------------------------------------------\n\n* Provides imports for `react` and `react-dom`\n* Hooks up a bunch of necessary `babel` transforms\n* Provides a thin wrapper around your React components that bridge the gap between the two libraries\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajasegar%2Fember-react-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajasegar%2Fember-react-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajasegar%2Fember-react-ts/lists"}