Props - React Three Fiber Tutorials

jsx component에 properties를 전달하는 3가지 방식

export function Box(props) {
    console.log(props)
    return (
       <mesh {...props}>
        <boxGeometry />
        <meshBasicMaterial color={0x00ff00} wireframe />
      </mesh>
    )
}

export function Box({position}) {
    console.log(props)
    return (
       <mesh position={position}>
        <boxGeometry />
        <meshBasicMaterial color={0x00ff00} wireframe />
      </mesh>
    )
}