Code Explainers
function useHashState(key, defaultValue) { const parse = () => { const params = new URLSearchParams(window.location.hash.slice(1)); return params.has(key) ? params.get(key) : defaultValue;