I have seen some webpages(for example facebook) where created/posted date for posts are counting. For example posted now, 5 min ago, yesterday at 14 and so on.
Im working on a reactJS webpage right now where this functionality would be really nice. I am sending models to the client but these are only used to generate the react code then its not used any more.
So the question is, what would be the best way to solve this? Should I maybe create a special react datetime component that are used? And if so, how could it look like?
Edit : sorry for not being clear. The time can be calculated on server but I need it to count down live on the client.