Previously, when I tried to set up
HMR for my own React develop environment, I encountered a weird thing, I followed the official tutorial, and still can’t get it work, it’s interesting to see that there is no error message. All the messages indicate that the system thinks it should work as expected. But actually it’s not.
This is how I made it work at last, think it worths a note. And I contributed a pull request to the official webpack documents and gets accepted.