Create a PerformanceMonitor component that shows JS-thread FPS by counting requestAnimationFrame callbacks and sampling with setInterval. Update every second.
Click Run to test your code