Optimizing a React SPA