News for hackers. Stuff that matters.
Re:Persisting React State in LocalStorage by ficklepickle on Saturday February 29, 2020 @03:14AM (#22449583)
An appropriate use is as a progressive enhancement.

For example, I use a similar approach in an open source trivia game[0] to store the last categories selected. Then, when a new game is started, these categories are pre-selected but easily changed. It's not crucial to the game play, but it is convenient.

It can also be used in PWA's when offline.

[0] https://justtrivia.fun

There are no comments on this comment yet.