3 ms·Yeah probably best to move this to a function outside the render loop with useCallbackby symlinkk 5y agoYeah probably best to move this to a function outside the render loop with useCallback