nicenote/docs/fea/webgl/demo/earth copy.tsx
2023-11-03 10:03:49 +08:00

20 lines
315 B
TypeScript

import React, { useRef, useEffect } from 'react';
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
export default () => {
const ref = useRef(null)
useEffect(() => {
})
const init = () => {
}
return (
<canvas ref={ref} id="earth" />
)
}