diff --git a/src/Dust.tsx b/src/Dust.tsx index 70d9e55..24c211f 100644 --- a/src/Dust.tsx +++ b/src/Dust.tsx @@ -7,12 +7,11 @@ import React from 'react'; import {InstancedMesh, PointLight} from 'three'; import * as THREE from 'three'; - const count = 10000; export const Dust: React.FC = () => { - const mesh = useRef(); - const light = useRef(); + const mesh = useRef(null); + const light = useRef(null); const frame = useCurrentFrame();