I’m made a next function.
const meshRef = useRef<THREE.Mesh>();
...
return(
<Mesh ref = {meshRef}, name={''} />
<Slide mesh = {meshRef}, parameter={}...>
)
And i want change this to like a next.
...
return(
<Slide parameter={}...>
<Mesh name={''} />
</Slide>
)
I saw red line(error) disappearing with IPropsWithChildren.
const = function name: React.FC<SlideProp & IPropsWithChildren> = ({
...
});
But, i don’t see & control target mesh parameter.
Please how or example.