How to make react faster!

  1. How to cache static files ?

    • Static assets (.js, .css, images) are cached via HTTP headers.

    • Use Cache-Control: public, max-age=31536000, immutable for static files.

  2. How to use Service Worker (PWA Style) ?

  3. Bundle Optimization

    • Webpack Analyzer to identify large bundles.

    • Tree shaking to remove dead code.

  4. How to use <link rel="preload" /> or React Helmet to preload important fonts, styles, or images ?

  5. What is Nginx? How to set it up in React ? For faster reload ?

  6. What is React.memo(Component)?

  7. React Lazy Component : From Notion Newsletter

  8. Use useMemo : How help faster ? Complex Calculations

Last updated