I want to know if there is a way to have data be linked between different users. In my case I'm building a gift wish list and each item has a buy button attached to it. if the buy button is clicked and someone buys the item then the item no longer needs to be displayed. but i have no idea how sync that data between users. I tried using sqlite but I wasn't able to find a way to store the data that is returned from db.each since its asynchronous. I also thought of JSON but there didn't seem to be a good way to write to an external JSON file. I know that I can't be the only one with this issue but I don't really know what to search in order to find the answers I'm looking for.
TIA
Three approaches I would suggest. (The problem isn't really tied to ReactJS)
1. Reactive Approach
2. Real Time Approach
3. Near Real Time Approach