-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Use react app inside another react app #4062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think you will find a better solution than using somethin like npm for this, as you suggested it.
Once your shared components are published on npm, you can just |
How would you provide attributes the same way between those two ways? (bundle and npm) My current workflow is to provide those settings through a global I 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) |
2.x will have monorepo support, you can search and find more about in the 2.0 roadmap issue! |
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.
I want/need to keep using it this way.
But 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.
But I don't think I can use it this way inside another react app.
I read about #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?
The text was updated successfully, but these errors were encountered: