import { useTempus } from 'tempus/react'
function App() {
useTempus((time, deltaTime) => {
console.log('frame', time, deltaTime)
})
}
useTempus(() => {}, {
fps: 30, // Will run at 30 FPS
priority: -1, // Will run before other animations
})
import { ReactTempus } from 'tempus/react'
<ReactTempus patch />