This example uses:
threejs: A lightweight, 3D library with a default WebGL renderer. The library also provides Canvas 2D, SVG and CSS3D renderers in the examples.
react-three-fiber: A React renderer for Threejs on the web and react-native.
Deploy the example using ZEIT Now:
Execute create-next-app with npm or Yarn to bootstrap the example:
npx create-next-app --example with-three-js
# or
yarn create next-app --example with-three-jsDownload the example:
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-three-js
cd with-three-jsInstall it and run:
npm install
npm run dev
# or
yarn
yarn devDeploy it to the cloud with ZEIT Now (Documentation).