{"repo":"pmndrs/react-three-fiber","free":true,"listed":false,"github":"https://github.com/pmndrs/react-three-fiber","clone":"git clone https://github.com/pmndrs/react-three-fiber.git","description":"🇨🇭 A React renderer for Three.js","language":"TypeScript","stars":31728,"topics":["react","threejs","fiber","renderer","3d","animation"],"license":"MIT","category":"game-templates","readme_excerpt":"@react-three/fiber react-three-fiber is a React renderer for threejs. Build your scene declaratively with re-usable, self-contained components that react to state, are readily interactive and can participate in React's ecosystem. [!WARNING] Three-fiber is a React renderer, it must pair with a major version of React, just like react-dom, react-native, etc. @react-three/fiber@8 pairs with react@18, @react-three/fiber@9 pairs with react@19. --- Does it have limitations? None. Everything that works in Threejs will work here without exception. Is it slower than plain Threejs? No. There is no overhead. Components render outside of React. It outperforms Threejs in scale due to React's scheduling abilities. Can it keep up with frequent feature updates to Threejs? Yes. It merely expresses Threejs in JSX, dynamically turns into new THREE.Mesh() . If a new Threejs version adds, removes or changes features, it will be available to you instantly without depending on updates to this library. What does it look like? Let's make a re-usable component that has its own state, reacts to user-input and participates in the render-loop. ( live demo ). Show TypeScript example Live demo: https://codesandbox.io/s/icy-tree-brnsm?file=/src/App.tsx Show React Native example This example relies on react 18 and uses expo-cli , but you can create a bare project with their template or with the react-native CLI. Some configuration may be required to tell the Metro bundler about your assets if you use useLoade","default_branch":null,"files":null,"tree":[],"storefront":"/r/pmndrs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pmndrs/react-three-fiber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}