A simple (50 lines) approach of utilizing window.onpopstate. Use pages folder to extend your routes.
A simple (10 lines) approach to make the routes accessable with static webhosting.
yarn
yarn dev # development
yarn generate # pre-rendered public folder
Install now
if you haven't already:
npm install -g now
now