Home > front end >  React, show array element according to timestamp
React, show array element according to timestamp

Time:12-31

The feature I would like to implement is that the React component shows the task that would be taking place according to the timestamps of the data that are in the data array.

Each of the elements of the array has two timestamps, the timestamp of when the task is started and when the task is finished.

However, unfortunately I don't know how I could make the component dynamically show the task that will be executed.

That is, if there is a task to be executed, it would show the task that is being started, otherwise, it doesn't show the task and waits until the next task in the array starts so that it can show it.

I hope I'm not being confused

  • Related