How to load three-orbitcontrols with import syntax?

前端 未结 5 1754
遇见更好的自我
遇见更好的自我 2021-01-17 14:59

Has anyone tried using the OrbitControls function with ReactJS? Here is the sample code I wrote:

import React, { Component } from \'react\';
import \'tachy         


        
5条回答
  •  误落风尘
    2021-01-17 15:11

    I have to go with Anurag with this one. First i had three-orbit-controls installed which danlong suggested, but i ended up having issues with require not being defined when trying to start the WebClient.

    After that i switched to orbit-controls-es6 and everything worked just fine.

提交回复
热议问题