How to leverage Local Storage to build lightning-fast apps
Nikita Kozlov

This article give a nice headstart.

But i am wondering about the case when a user likes a comment/post on a page and I store that action in local storage to be synced later with server.

Then how should I manage the 'like' data if user refreshes that same page?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.