vite-go
vite-go copied to clipboard
React Vite template not hot reload
I have played around with the example Vue HRM. working fine.
But I tried with React it didn't. Until I refresh to page.
I'd need to check your code. Could you post it as a github repo?
I've heard rumors that some versions of Vite may have trouble, but I'll need to try it out to see.
https://github.com/mengtongun/go-vite-react
Here is the sample project with react I have tried with HRM but not working.
Sorry for the very long delay on my part. I've had the chance to get back to this. I started up your app by:
- cloning the repo
- cd into the repo
- start the app with
make dev, which starts up the app in dev mode and fires up Vite.
As near as I can tell, it works perfectly. I edit the App.jsx and the running app immediately reflects the the change.
What were you doing that did not work as you expected?