Apart from keeping you logged in, like the other commenter mentioned, cookies can for example be used to save the theme you are using (light/dark) or the language you picked. It would be annoying to have to reselect that every time you move to a different subpage.
Apart from keeping you logged in, like the other commenter mentioned, cookies can for example be used to save the theme you are using (light/dark) or the language you picked. It would be annoying to have to reselect that every time you move to a different subpage.
Theme can use local storage, instead of cookies.
This breaks once you’ve got server-sided rendering.