Skip to content

Instantly share code, notes, and snippets.

View HeLinChooi's full-sized avatar
🎯
Focusing

He Lin HeLinChooi

🎯
Focusing
View GitHub Profile
@HeLinChooi
HeLinChooi / .md
Created October 14, 2025 14:37
Medium - Core Web Vitals
Metric What It Measures Target Description
Largest Contentful Paint (LCP) Loading performance ≤ 2.5 seconds Identifies when the largest content element in the viewport is rendered, effectively measuring perceived load time
Interaction to Next Paint (INP) Responsiveness < 200 milliseconds Identifies all interactions and reports the worst latency
Cumulative Layout Shift (CLS) Visual stability < 0.1 Identifies the largest burst (session window) with maximum cumulative score of all layout shifts within the windows using Layout Stability API
yarn create react-app my-app --template typescript
cd app-name
yarn add @mui/material @emotion/react @emotion/styled @mui/icons-material react-router-dom sass
npx husky-init
yarn add --dev pretty-quick prettier
npx husky set .husky/pre-commit "npx pretty-quick --staged"