{"id":13806703,"url":"https://github.com/alexlafroscia/ember-react-components","last_synced_at":"2025-04-13T09:24:31.542Z","repository":{"id":30974003,"uuid":"126543890","full_name":"alexlafroscia/ember-react-components","owner":"alexlafroscia","description":"Render React components in Ember","archived":false,"fork":false,"pushed_at":"2022-12-09T14:49:45.000Z","size":3825,"stargazers_count":53,"open_issues_count":37,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T12:37:03.628Z","etag":null,"topics":["ember","ember-addon","react"],"latest_commit_sha":null,"homepage":"https://alexlafroscia.github.io/ember-react-components","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/alexlafroscia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-03-23T22:15:18.000Z","updated_at":"2025-01-25T16:30:00.000Z","dependencies_parsed_at":"2023-01-14T18:15:49.251Z","dependency_job_id":null,"html_url":"https://github.com/alexlafroscia/ember-react-components","commit_stats":null,"previous_names":["alexlafroscia/ember-cli-react"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Fember-react-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Fember-react-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Fember-react-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Fember-react-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexlafroscia","download_url":"https://codeload.github.com/alexlafroscia/ember-react-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248689846,"owners_count":21146016,"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":["ember","ember-addon","react"],"created_at":"2024-08-04T01:01:14.951Z","updated_at":"2025-04-13T09:24:31.497Z","avatar_url":"https://github.com/alexlafroscia.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["External Components Integration"],"readme":"ember-react-components\n==============================================================================\n\n[![Build Status](https://travis-ci.org/alexlafroscia/ember-react-components.svg?branch=master)](https://travis-ci.org/alexlafroscia/ember-react-components)\n\n\u003e Consume React components in Ember\n\nThis addon is a proof-of-concept for an approach to rendering React components in Ember. It is almost entirely inspired by [a blog post][blog-post] by [Sivakumar Kailasam][sivakumar], from which the general idea was borrowed.\n\nInstallation\n------------------------------------------------------------------------------\n\n```bash\nember install ember-react-components @ember-decorators/babel-transforms\n```\n\nCompatibility\n------------------------------------------------------------------------------\n\nThis addon requires Ember CLI 2.15 or higher.\n\nUsage\n------------------------------------------------------------------------------\n\nThis addon provides an ES6 class decorator 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.js\nimport React from 'react';\nimport WithEmberSupport from 'ember-react-components';\n\n@WithEmberSupport\nexport default class extends React.Component {\n  render() {\n    const { name } = this.props;\n\n    return (\n      \u003cp\u003eHello, {name}\u003c/p\u003e\n    );\n  }\n}\n```\n\nAnd render it like this:\n\n```handlebars\n{{my-react-component name='Alex'}}\n```\n\nThat would create a component that renders `Hello, Alex`.\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 decorator for creating a thin wrapper around your React components that bridge the gap between the two libraries\n\nIs this production ready?\n------------------------------------------------------------------------------\n\nIt _does_ work, but you should be really careful about including both the Ember _and_ React libraries in your application since that's quite a lot of JavaScript to ship to your users.\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n\n[blog-post]: https://medium.com/@sivakumar_k/using-react-components-in-your-ember-app-8f7805d409b0\n[sivakumar]: https://github.com/sivakumar-kailasam\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexlafroscia%2Fember-react-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexlafroscia%2Fember-react-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexlafroscia%2Fember-react-components/lists"}