Hot reload

hmr

  • npm install hot-module-replacement
  • have your ./main.tsx file like this
  • create a ./hmr.js file like this
  • create a script entry in your package.json like this
  • run npm run dev
  • do any changes and it should get reflected instantly