-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Create React App integrated in an existing application #4133
Comments
did you ever figure out a solution to this? |
Nope. |
our work app has a similar structure to yours. i was messing around with it today and found out you can get live-reloading if you run |
Interesting. That works pretty well but doesn't live-reload the component,
just updates the JS. Do you have a way to do that?
…On Fri, Mar 23, 2018 at 9:54 PM, qwertwerty21 ***@***.***> wrote:
our work app has a similar structure to yours. i was messing around with
it today and found out you can get live-reloading if you run npm start in
the react app and have your server load localhost:3000/bundle.js instead
of the final production version of bundle.js
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4133 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKwACQ0_FManpzUop8ipCigAHBnqiJlkks5thdGVgaJpZM4Sktuk>
.
--
___________________________
Nathan Hyland
(602)740-5705
|
nope. still don't have true live-reload, but i figure it's still a better dev workflow than having to rebuild every time you want to see a change |
Have a look at #3071 |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. |
If I have a react app nested in a server-side rendered page, how would I be able to get react to live-reload while in dev?
Right now, the server renders the page which has a DOM element the CRA app mounts to, to display within the application. It works great since we can't stop to rewrite the entire application just yet, but we can't get it to live-reload this way.
Basically my structure is
ui
is all the react code, and it gets transpiled and pushed to the/public
directory, where it then looks for div ids in/views
to mount to. The server generates the page, loads the JS, and React starts running inside the rendered pages, wherever it mounts.How can I run this app and have react hot-reload to /public for me?
Thanks!
Also, this would be nice to do without ejecting.
The text was updated successfully, but these errors were encountered: