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.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (14)
Can you put your project in the Github?
I'll try to help you
yes sure
you can leave the url to the Github repositories either in the comments or add it to your post
ok, I am on it
github.com/Salman937/my-app
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)ok let me check
not saying compiling in the terminal. In my terminal, it showing, [HMR] Waiting for update signal from WDS...
Not in the console in browser devtools, I mean terminal where you type
npm start
to start the appnothing happing in the console
Hmmm, have you tried the suggestion from the accepted answer in this stackoverflow thread
Sorry I can't help you any further
Thank you very much for help
Use hooks
e.i useState()
This will reRender reactDom without refreshing
not understanding, please explain where to use?