Open DuncanWalter opened 5 years ago
branch with three installed: https://github.com/DuncanWalter/tile-flipper/tree/three-canvas
run yarn to install the dep locally and you're ready to:
yarn
import { Scene } from 'three' // go hog wild
Mounting three onto a component that react manages will require using a ref, which is fairly well covered here: https://blog.bitsrc.io/starting-with-react-16-and-three-js-in-5-minutes-3079b8829817
Probably worth opting into: https://threejs.org/docs/#manual/en/introduction/How-to-use-WebGL2
branch with three installed: https://github.com/DuncanWalter/tile-flipper/tree/three-canvas
run
yarn
to install the dep locally and you're ready to:Mounting three onto a component that react manages will require using a ref, which is fairly well covered here: https://blog.bitsrc.io/starting-with-react-16-and-three-js-in-5-minutes-3079b8829817