React Three Fiber (iteration animation)

Hello!

How i can rotate all elements ?

your Cube.jsx is empty

i change it, sorry

done