You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the react redux typescript template and made a new empty project. I removed the tests, logo and some html from app.tsx that i did not need. Ran the project and it worked fine.
Then I simply added the following code to App.tsx and it didn't work
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I used the react redux typescript template and made a new empty project. I removed the tests, logo and some html from app.tsx that i did not need. Ran the project and it worked fine.
Then I simply added the following code to App.tsx and it didn't work
React.useEffect(() => { console.log("test"); }, []);
So strange cause if I make a simple change to a html tag then hmr works fine but this very simple console.log does not.
Thinking it might be a bug with cra or the specific template but wanted to check before creating one.
Beta Was this translation helpful? Give feedback.
All reactions