What's the advantage of using React for a landing page that could be a 10KB static HTML file ? (non-sarcastic question)
Extensibility. We may begin with simple hero image/call-to-action, but we might wind up with a sign up form with validation, a interactive map of office locations, maybe even fancy particles (who doesn't love particles!?[1]), etc. The page load will be fast enough to dissuade no users, I can add server-side rendering & free code-splitting (e.g. Next.Js), etc. Seems like a good deal. [1] https://vincentgarreau.com/par…
I don’t. Please don’t waste my cycles and battery on pointless visual effects (unless you’re a vfx company).