
Thinking in React
The React Show
00:00
Is There a Difference Between React and React?
Most games are written to run all the code for your game engine as fast as it possibly can, but only update the user's display when it really needs to be updated. So essentially you could be like, I want to run my animation 10,000 times per second. But the user screen maybe only updates once every 16 milliseconds. And so we're only going to re render a react component once every16 milliseconds. This is really cool, I think, especially for animation type code because it allows you to write sort of cleaner code and allow you to really easily adjust the smoothness of the animation.
Transcript
Play full episode