A React Hook that run a function only once on the next frame using requestAnimationFrame.
Try to open DevTools to see the console log.
See API for more details.
Click links below to view source on GitHub.
A funtion
that need to be run on the next frame.
A boolean
that will clean the raf when the component unmounts.
A function
that will run the fn
on the next frame.