[react-three-fiber] How make function component with IPropsWithChildren?

I’m made a next function.

const meshRef = useRef<THREE.Mesh>();
    <Mesh ref = {meshRef}, name={''} />
	<Slide mesh = {meshRef}, parameter={}...>

And i want change this to like a next.

	<Slide parameter={}...>
		<Mesh name={''} />

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. :pray:

i think https://spectrum.chat/react-three-fiber is a better place for react related stuff.

1 Like

Thank you for letting me this community!