Project to submit · JavaScript and React course · Module 9: Modern React Hooks

Mentor Project: Galactic Core Performance Laboratory

Well done! You have finished the whole module of React's new tools: transitions and deferred values, forms with actions, useId, use, useOptimistic, list virtualization and the performance toolbox. Time to build the Galactic Core Performance Laboratory. The app should have: a catalog of at least 10,000 objects with a virtualized list and a search based on useDeferredValue or useTransition, a report form with useActionState, validation in the action and a button that uses useFormStatus, optimistic adding of entries with useOptimistic that rolls back on an error, form fields connected to their labels with useId, and a Profiler component that logs the render times of the heaviest view. Measure the render time before and after the optimization and write the results in the README file.

Task

Send your mentor the link to the Galactic Core Performance Laboratory (a repository or a sandbox) together with the README: what you measured before the optimization, what you changed and what the result was.