Type d'évaluation
Mise en situation réelle
Analyse
Intelligence Artificielle
Compétences ciblées
Scénario Technique
Context A data grid component computes a filtered and sorted list of 10,000 records on every render, causing noticeable frame drops when unrelated state changes. The Problem The filtering and sorting logic runs synchronously on every render regardless of whether the source data or filter criteria have changed. Constraints Wrap the filtering and sorting computation in useMemo. Define the dependency array to include only the data array and the active filter. Measure the improvement with React DevTools Profiler. Expected Deliverable A React data grid component using useMemo to memoize expensive computations, with a clear explanation of the dependency array and measured performance impact.
Prêt à évaluer ce talent ?
Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.