You can import three.js as regular Import in React ( import * as THREE from 'three'; ), and put your custom code in componentDidMount() or in useEffect() if ...
確定! 回上一頁