Overview
The r3f-template is a basic setup for those who are beginning to work with react-three-fiber. It includes useful packages such as @react-three/fiber, @react-three/drei, @react-spring/three, zustand, and more. This template is based on Create React App.
Features
- Basic setup for react-three-fiber
- Includes useful packages like @react-three/drei, zustand, react-use-gesture, and aphrodite
- Provides examples and debug tools like react-three-gui
Installation
- Clone the repository
- Run
npm installto install the required dependencies - To start the development server, run
npm start - Open http://localhost:3000 in your browser to view the app
- Edit the files and see the changes live with hot reloading
- To run tests, use the command
npm test - To build the app for production, run
npm run build - The optimized and minified production build will be available in the
buildfolder
Summary
The r3f-template is a beginner-friendly setup for working with react-three-fiber. It includes essential packages and provides a basic example to get started. The installation process is straightforward, and the template offers features like debug tools and test runners. It is a useful tool for those who want to explore threejs, react, and react-three-fiber.