React Performance: JS Perf — Loop Min Max. Keywords: loop min max sort. Platform: React/Next.js. Description: Use loop for min/max instead of sort - O(n) vs O(n log n). Do: Single pass loop for min/max. Don't: Sort array to find min/max. Good Example: let max = arr[0]; for (x of arr) if (x > max) max = x. Bad Example: arr.sort((a,b) => b-a)[0] // O(n log n). Severity: Low.