Effective way to keep track of 3D objects in React

hi @drcmda ,
Could you have a minute to check my code? I think the question is related to mine. Here’s the question I asked including code as well