Outline

It is possible to maintain state without using third-party tools like Vuex by saving data to the browser's persistent Local Storage.

You can read and write key-pairs to local storage by calling localStorage.setItem('key','value'), localStorage.getItem('key') and localStorage.removeItem('key').

localStorage.clear() will dump all data.

This method is better than declaring global variables, but still requires careful planning and forethought.

 

I finished! On to the next chapter