How to Make localStorage Reactive in Vue

Reactivity is one of Vue’s greatest features. It is also one of the most mysterious if you don’t know what it’s doing behind the scenes. Like, why does it work with objects and arrays and not with other things, like localStorage?

How to Make localStorage Reactive in Vue

June 2020

At the time, I was really interested in the inner logic of Vue.js and how reactivity works. As a result, I wrote an article that explains its logic and extends the behavior to the localStorage object.

Read on CSS-Tricks
  • vue
  • localstorage