Wednesday, June 21, 2023

react-three-fiber: React renderer for threejs

pmndrs/react-three-fiber: 🇨🇭 A React renderer for Three.js

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.

Is it slower than plain Threejs?

No. There is no overhead. Components render outside of React.
It outperforms Threejs in scale due to Reacts scheduling abilities.

Basic demo - CodeSandbox

No comments: