React SPA Checklist Docs
React SPA Checklist Docs
Development Checklist
Package/ Module
UI Library
SEO Checklist
❏ Sitemap file
❏ Robots.txt file
❏ Must have GTM tag or Google analytics tag
❏ Have a <Title>
❏ Must have and Only single <h1 > tag in one page
❏ Responsive meta tag like <meta name="viewport"
content="width=device-width, initial-scale=1">
❏ Meta content description and keywords) like this
❏ Meta robots.
❏ Structured data or data schema
❏ Meta Open graph (facebook)
❏ Meta twitter
❏ Declarative images names like /cover-logique.webp , don't be generic names like
/background2.jpg or /logique-compressed6.svg
❏ Must have alt property in every img tag
❏ Passed at Google Rich Test Result for structured data checking
❏ Passed at Tag Validator for validation HTML tag and inline css
❏ Passed Google Pagespeed insight mobile score 60 , desktop 70
4
Codebase Convention
Performance
❏ Don't use Momentjs for date libraries, it makes the bundle size bigger. Use dayjs.
❏ Make sure css, Js, and HTML file minimized after build
❏ Make sure purgeCss works perfectly
5
❏ Preload primary image for increased LCP Score (beware about image
preloading. Make sure we’re not preload unnecessary images )
❏ Use Cache Control for the right way for static and dynamic pages. Use long for
static and no-cache or Stale-while-revalidate for dynamic pages.
❏ Lazy-load image for below content. Dont lazy on the primary view Area. see this.
❏ Use React Lazy or suspends for lazy load. don't use react-lazy, suspend,
loadable-component, etc.
❏ Recommended using react-hook-form for form validation.