I have a list with three string elements, and I would like to use the array elements one by one to update the component <p>{text}</p>
at a time interval of 3 seconds.
I found a similar answer here, but I don't want to randomly pick the array elements and I would like to stop after I go throw every array elements.