I have a react app and an android application. Now I send data from android to my server. Data is update in my mongoDB. After that I want to show it in my react app that a new data is added. Now I am not able to understand how to re-render my react app to show the users that data has been changed.
Possible solution I thought about:
- I create a async sleep to un-mount and mount my component and do a db query in componentdidmount()
- I am clueless
Doing a sync and refresh every minute or two doesn't feel like a good development skill.