Java Array Within Array Javascript Mdn Setinterval In React