{"id":22788979,"url":"https://github.com/ripeworks/react-rails-simple","last_synced_at":"2025-07-31T02:37:08.361Z","repository":{"id":70208215,"uuid":"64314580","full_name":"ripeworks/react-rails-simple","owner":"ripeworks","description":"A simple setup for putting react into your rails","archived":false,"fork":false,"pushed_at":"2016-09-12T16:13:01.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T18:02:58.276Z","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/ripeworks.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":"2016-07-27T14:18:47.000Z","updated_at":"2016-09-23T14:08:15.000Z","dependencies_parsed_at":"2023-03-24T08:46:56.552Z","dependency_job_id":null,"html_url":"https://github.com/ripeworks/react-rails-simple","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/ripeworks%2Freact-rails-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripeworks%2Freact-rails-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripeworks%2Freact-rails-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripeworks%2Freact-rails-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ripeworks","download_url":"https://codeload.github.com/ripeworks/react-rails-simple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246344275,"owners_count":20762175,"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-12-12T01:39:25.848Z","updated_at":"2025-03-30T16:23:26.381Z","avatar_url":"https://github.com/ripeworks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-rails-simple\n\nA simple setup for putting react into your rails\n\n## Getting Started\n\n1. Copy assets into your rails project\n2. Install modules `npm install`\n3. Add bundle tag\n3. Go! `foreman start -f Procfile.dev`\n\n## Adding the javascript bundle\n\nDrop this into your main application layout\n\n```erb\n\u003c%= javascript_bundle_tag 'main' %\u003e\n```\n\n## Using components in rails views\n\nExport component in `app/assets/javascripts/components/index.js`\n\n```js\n// app/assets/javascripts/components/index.js\nexport MyComponent from './MyComponent'\n```\n\nUse the `component` helper to render a React component into a view:\n\n`component(String component_name, Hash props)`\n\n```erb\n\u003c%= component('MyComponent', {}) %\u003e\n```\n\n## Production\n\nThe javascript bundle will be compiled during `assets:precompile`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fripeworks%2Freact-rails-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fripeworks%2Freact-rails-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fripeworks%2Freact-rails-simple/lists"}