{ parent.setAttribute('position', self); return () => { // cleanup function called when ref changes or the component unmounts // https://threlte.xyz/docs/reference/core/t#attach }; }} />