Recently, I came across the following Stack Overflow question regarding state handling on refresh in a single page application (SPA). I found the approach OP was taking towards developing a SPA interesting: they wanted to avoid third party libraries and frameworks because they “prefer the simpler ways first”. Here’s the…