I couldn’t be happier to read this! I found it difficult to get Hot-Reloading to work without using a boilerplate somebody else created, which is usually bloated in one way or another. I’m glad that the complexity is only accidental and not intentional.
Hot-Reloading is a huge performance boost, expecially for complex apps where it is a real pain to reload an app after every change, since it will take several seconds after each reload to get it to the state where you left off.
Looking at the PR you mentioned so I can extract some of those pieces into my own toolkit. It’s a bummer that there is no easy solution to keep the local state for each component after a Hot-Reload (in your new solution from the PR that is), but it’s better than refreshing the page for sure!