We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d2265 commit b11fc83Copy full SHA for b11fc83
module/source/components/unity.ts
@@ -7,6 +7,7 @@ import {
7
JSX,
8
useImperativeHandle,
9
useCallback,
10
+ RefAttributes,
11
} from "react";
12
import { UnityInstance } from "../types/unity-instance";
13
import { UnityProps } from "../types/unity-props";
@@ -15,7 +16,7 @@ import { useUnityLoader } from "../hooks/use-unity-loader";
15
16
import { UnityArguments } from "../types/unity-arguments";
17
18
const Unity: ForwardRefExoticComponent<
- UnityProps & React.RefAttributes<HTMLCanvasElement>
19
+ UnityProps & RefAttributes<HTMLCanvasElement>
20
> = forwardRef<HTMLCanvasElement, UnityProps>(
21
/**
22
* @param unityProps The Unity props provided the the Unity component.
0 commit comments