File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ export const AmbientLight = (props: ThreeElements["ambientLight"]) =>
88 // @ts -expect-error Property does not exist on type JSX.IntrinsicElements
99 < ambientLight { ...props } /> ;
1010
11- export const DirectionalLight = ( props : ThreeElements [ "directionalLight" ] ) =>
12- // @ts -expect-error Property does not exist on type JSX.IntrinsicElements
13- < directionalLight { ...props } /> ;
11+ export const DirectionalLight =
12+ React . forwardRef ( ( props : ThreeElements [ "directionalLight" ] , ref ) =>
13+ // @ts -expect-error Property does not exist on type JSX.IntrinsicElements
14+ < directionalLight ref = { ref } { ...props } /> ) ;
1415
1516export const Group = React . forwardRef ( ( props : ThreeElements [ "group" ] , ref ) =>
1617 // @ts -expect-error Property does not exist on type JSX.IntrinsicElements
You can’t perform that action at this time.
0 commit comments