Skip to content

Three different approaches of rendering r3f animated components.

Notifications You must be signed in to change notification settings

JBudny/r3f-stateful-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three different approaches of rendering R3F animated components.

CodeSandbox Link

  • StatefullBox rotates using state, so it rerenders on every state mutation. Not recommended for animated components.
  • StatelessBox rotates using ref, so it doesn't rerender.
  • StatefullBoxWithZustand rotates using Zustand transient updating state, so it's stateful but doesn't rerender.

Look at the console to see all the components updates.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

About

Three different approaches of rendering r3f animated components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published