{"id":15015736,"url":"https://github.com/rajasegar/ember-react-fc","last_synced_at":"2025-06-29T07:32:44.855Z","repository":{"id":245791880,"uuid":"819241209","full_name":"rajasegar/ember-react-fc","owner":"rajasegar","description":"React Functional components in Ember","archived":false,"fork":false,"pushed_at":"2024-07-13T05:41:33.000Z","size":676,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T17:17:48.668Z","etag":null,"topics":["ember","emberjs","react","react-in-ember","reactjs"],"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-06-24T05:57:40.000Z","updated_at":"2025-01-09T13:46:54.000Z","dependencies_parsed_at":"2024-06-24T07:29:57.673Z","dependency_job_id":"a5694486-7f7e-4dd7-98a6-9991afb5de83","html_url":"https://github.com/rajasegar/ember-react-fc","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"c9642dad990ac64688970be64b1bbddb887b6976"},"previous_names":["rajasegar/ember-react-fc"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rajasegar/ember-react-fc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-fc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-fc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-fc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-fc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajasegar","download_url":"https://codeload.github.com/rajasegar/ember-react-fc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajasegar%2Fember-react-fc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260820319,"owners_count":23068046,"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","emberjs","react","react-in-ember","reactjs"],"created_at":"2024-09-24T19:47:51.666Z","updated_at":"2025-06-29T07:32:44.835Z","avatar_url":"https://github.com/rajasegar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-react-fc\n==============================================================================\n\nEmber addon to use React Functional components inside Ember apps.\n\n\nYou can read the introductory blog post [here](https://dev.to/rajasegar/react-inside-ember-the-second-chapter-17bl)\n\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.12 or above\n* Ember CLI v2.13 or above\n* Node.js v10 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-react-fc\n```\n\nCompatibility\n------------------------------------------------------------------------------\n\nThis addon requires Ember CLI 2.15 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.jsx\nimport React from 'react';\nimport WithEmberSupport from 'ember-react-fc';\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.jsx` 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-fc': {\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-fc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajasegar%2Fember-react-fc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajasegar%2Fember-react-fc/lists"}