{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/4062","repository_url":"https://api.github.com/repos/facebook/create-react-app","labels_url":"https://api.github.com/repos/facebook/create-react-app/issues/4062/labels{/name}","comments_url":"https://api.github.com/repos/facebook/create-react-app/issues/4062/comments","events_url":"https://api.github.com/repos/facebook/create-react-app/issues/4062/events","html_url":"https://github.com/facebook/create-react-app/issues/4062","id":299577108,"number":4062,"title":"Use react app inside another react app","user":{"login":"Vadorequest","id":3807458,"avatar_url":"https://avatars2.githubusercontent.com/u/3807458?v=4","gravatar_id":"","url":"https://api.github.com/users/Vadorequest","html_url":"https://github.com/Vadorequest","followers_url":"https://api.github.com/users/Vadorequest/followers","following_url":"https://api.github.com/users/Vadorequest/following{/other_user}","gists_url":"https://api.github.com/users/Vadorequest/gists{/gist_id}","starred_url":"https://api.github.com/users/Vadorequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vadorequest/subscriptions","organizations_url":"https://api.github.com/users/Vadorequest/orgs","repos_url":"https://api.github.com/users/Vadorequest/repos","events_url":"https://api.github.com/users/Vadorequest/events{/privacy}","received_events_url":"https://api.github.com/users/Vadorequest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-23T02:17:58Z","updated_at":"2018-02-23T11:53:28Z","closed_at":null,"author_association":"NONE","body":"I have an existing react app, which is currently used like a traditional a react app: Basically load the bundled JS version in a HTML page and get going.\r\n\r\nI want/need to keep using it this way.\r\n\r\nBut as my needs are growing, I also need to use it within another react app and I wonder about how I should do it properly. Based on my current usage, I already have a CDN with the bundled versions.\r\nBut I don't think I can use it this way inside another react app.\r\n\r\nI read about https://github.com/facebook/create-react-app/issues/1492 but didn't really find any good solution so far. I've thought about releasing a npm version, which would allow me to use it as a component (I guess), but would also be more work to deal with, with versioning and releasing both the bundled and npm version at every update. What are my options?"},"comment":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/comments/367989607","html_url":"https://github.com/facebook/create-react-app/issues/4062#issuecomment-367989607","issue_url":"https://api.github.com/repos/facebook/create-react-app/issues/4062","id":367989607,"user":{"login":"Vadorequest","id":3807458,"avatar_url":"https://avatars2.githubusercontent.com/u/3807458?v=4","gravatar_id":"","url":"https://api.github.com/users/Vadorequest","html_url":"https://github.com/Vadorequest","followers_url":"https://api.github.com/users/Vadorequest/followers","following_url":"https://api.github.com/users/Vadorequest/following{/other_user}","gists_url":"https://api.github.com/users/Vadorequest/gists{/gist_id}","starred_url":"https://api.github.com/users/Vadorequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vadorequest/subscriptions","organizations_url":"https://api.github.com/users/Vadorequest/orgs","repos_url":"https://api.github.com/users/Vadorequest/repos","events_url":"https://api.github.com/users/Vadorequest/events{/privacy}","received_events_url":"https://api.github.com/users/Vadorequest/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T11:53:28Z","updated_at":"2018-02-23T11:53:28Z","author_association":"NONE","body":"How would you provide attributes the same way between those two ways? (bundle and npm)\r\n\r\nMy current workflow is to provide those settings through a global `window` variable. But that would be cleaner to instantiate the component properly with such settings given in attributes. \r\n\r\nI wonder about a common way of doing it whether using the module as a component (npm package) or as a bundled js file injecting itself into a dom element (CRA's way)"}}
{"actor":{"display_login":"Vadorequest"}}