DEV Community

loading...

Page not reloading after changes

Salman iqbal
Full Stack Developer
・1 min read

Hi, I am new to react, I am having a problem, I have recently installed a new react app it's working fine when writing npm starts but whenever I did new changes in app.js file it's not affecting new changes in the browser. I am using mac, os Mojave. Please help me.

Discussion (14)

Collapse
rakumairu profile image
Demaspira Aulia

Can you put your project in the Github?
I'll try to help you

Collapse
salman_iqbal937 profile image
Salman iqbal Author

yes sure

Collapse
rakumairu profile image
Demaspira Aulia

you can leave the url to the Github repositories either in the comments or add it to your post

Thread Thread
salman_iqbal937 profile image
Salman iqbal Author

ok, I am on it

Thread Thread
salman_iqbal937 profile image
Salman iqbal Author
Thread Thread
rakumairu profile image
Demaspira Aulia

Okay I've tried it, but it's working fine on my machine.
Can you check if in the terminal says compiling... when you save any changes on App.js? (it might only show for a split seconds, but you can see when the output changes)

Thread Thread
salman_iqbal937 profile image
Salman iqbal Author

ok let me check

Thread Thread
salman_iqbal937 profile image
Salman iqbal Author

not saying compiling in the terminal. In my terminal, it showing, [HMR] Waiting for update signal from WDS...

Thread Thread
rakumairu profile image
Demaspira Aulia

Not in the console in browser devtools, I mean terminal where you type npm start to start the app

Thread Thread
salman_iqbal937 profile image
Salman iqbal Author

nothing happing in the console

Thread Thread
rakumairu profile image
Demaspira Aulia

Hmmm, have you tried the suggestion from the accepted answer in this stackoverflow thread
Sorry I can't help you any further

Thread Thread
salman_iqbal937 profile image
Salman iqbal Author

Thank you very much for help

Collapse
karthik371 profile image
Karthik371

Use hooks
e.i useState()
This will reRender reactDom without refreshing

Collapse
salman_iqbal937 profile image
Salman iqbal Author

not understanding, please explain where to use?