I use a counter starting from 0 to iterate through array chunks like useState(vidChunks[counter]), and using the npm react-infinit
counter
0
useState(vidChunks[counter])