Martin Schleiss wrote a nice tutorial on how to manage cookies in Vue.js.

vuejs cookies

One of the most common usage scenarios of any website is the sharing of state between a web server and a website visitor. May it be to enable logins or the tracking of events during an on-boarding sequence that the visitor has triggered. It’s an essential part to any website except you only have a static site for your resume, for instance.

But how can we do that in VueJS?