{"action":"created","issue":{"url":"https://api.github.com/repos/reactrb/reactrb/issues/169","repository_url":"https://api.github.com/repos/reactrb/reactrb","labels_url":"https://api.github.com/repos/reactrb/reactrb/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/reactrb/reactrb/issues/169/comments","events_url":"https://api.github.com/repos/reactrb/reactrb/issues/169/events","html_url":"https://github.com/reactrb/reactrb/issues/169","id":181143488,"number":169,"title":"Make react-rails default way to load reactjs","user":{"login":"zetachang","id":839973,"avatar_url":"https://avatars.githubusercontent.com/u/839973?v=3","gravatar_id":"","url":"https://api.github.com/users/zetachang","html_url":"https://github.com/zetachang","followers_url":"https://api.github.com/users/zetachang/followers","following_url":"https://api.github.com/users/zetachang/following{/other_user}","gists_url":"https://api.github.com/users/zetachang/gists{/gist_id}","starred_url":"https://api.github.com/users/zetachang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zetachang/subscriptions","organizations_url":"https://api.github.com/users/zetachang/orgs","repos_url":"https://api.github.com/users/zetachang/repos","events_url":"https://api.github.com/users/zetachang/events{/privacy}","received_events_url":"https://api.github.com/users/zetachang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T12:49:19Z","updated_at":"2016-10-06T17:04:12Z","closed_at":null,"body":"Current approach got some drawback\r\n* reactjs is no longer a single bundle now, there are \"react.js\" & \"react-dom.js\"\r\n* We need to ship new gem as new reactjs version released thus `react-latest` could make sense.\r\n\r\nSo the proposed approach will be delegating the actual source management to [react-rails](https://github.com/reactjs/react-rails) which is kept up to date as newer version of react released. \r\n\r\nIt would be a one line require both in opal and ruby to get react source properly included.\r\n```ruby\r\nrequire \"react/react-source\"\r\n```\r\n\r\nFor the ruby part, the \"react/react-source\" will add asset path from react-rails. And for opal part, it will load react-server.js and react.js properly.\r\n\r\nDeprecation warning for all the required source from **source** folder will be shown properly suggesting which version of react-rails they should installed. (according to https://github.com/reactjs/react-rails/blob/master/VERSIONS.md)"},"comment":{"url":"https://api.github.com/repos/reactrb/reactrb/issues/comments/252025928","html_url":"https://github.com/reactrb/reactrb/issues/169#issuecomment-252025928","issue_url":"https://api.github.com/repos/reactrb/reactrb/issues/169","id":252025928,"user":{"login":"catmando","id":63146,"avatar_url":"https://avatars.githubusercontent.com/u/63146?v=3","gravatar_id":"","url":"https://api.github.com/users/catmando","html_url":"https://github.com/catmando","followers_url":"https://api.github.com/users/catmando/followers","following_url":"https://api.github.com/users/catmando/following{/other_user}","gists_url":"https://api.github.com/users/catmando/gists{/gist_id}","starred_url":"https://api.github.com/users/catmando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catmando/subscriptions","organizations_url":"https://api.github.com/users/catmando/orgs","repos_url":"https://api.github.com/users/catmando/repos","events_url":"https://api.github.com/users/catmando/events{/privacy}","received_events_url":"https://api.github.com/users/catmando/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T17:04:12Z","updated_at":"2016-10-06T17:04:12Z","body":"okay, but I thought the first part was done?  Is that right?  I cant remember :-)"}}
{"actor":{"display_login":"catmando"}}