ByteBrief
We're a portrait publication through and through. Turn your phone back and your briefing picks up right where you left it.
(We tried widescreen once. It wasn't us.)
A custom React hook called useStickyState persists component state in localStorage across page refreshes. The hook reads from localStorage on initialization and writes on every state change using useEffect. It accepts a default value and a storage key, returning state and setter like useState.
Tap to vote and see what everyone thinks.
Summary by ByteBrief