News for hackers. Stuff that matters.
Re:Show HN: Open – Free React landing page template by a_wild_dandan on Thursday April 16, 2020 @10:28AM (#22889704)
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/particles.js/

Re:Show HN: Open – Free React landing page template by jakearmitage on Thursday April 16, 2020 @10:37AM (#22889801)
So... premature optimization?
Re:Show HN: Open – Free React landing page template by mdellabitta on Thursday April 16, 2020 @11:29AM (#22890395)
Premature optimization would be doing things in static HTML even though the rest of your code is in React because static HTML is "lighter" or "faster."

Also, Next.js does static HTML export out of the box if that's your preferred end target.

Re:Show HN: Open – Free React landing page template by a_wild_dandan on Thursday April 16, 2020 @11:46AM (#22890580)
Over-engineering perhaps, but not premature optimization. You don't have to reach for that stuff until you need it.

As a side note, I do often advocate for somewhat over-engineering projects by starting with familiar frameworks. They strongly constrain the solution space yet give power to quickly meet inevitable feature creep. Strong KISS/YAGNI proponents might balk at that endorsement, but I've had far more trouble handling growing pains from adapting codebases that don't use frameworks than I have working in such over-engineered framework-based projects.

Re:Show HN: Open – Free React landing page template by mtm7 on Thursday April 16, 2020 @02:23PM (#22892058)
This is fascinating. If you ever feel like writing about your experiences adapting codebases, I'd read it in a heartbeat! :)
Re:Show HN: Open – Free React landing page template by blauditore on Thursday April 16, 2020 @10:44AM (#22889867)
I would argue that if it's just for one or a few components, it's straight-forward to just drop in react parts there while leaving the rest of the page static. If the whole page should suddenly become dynamic, the work of migrating to react will probably be dwarfed by the work for actually building the new functionality.

So there is little reason to start out with react for a static page, unless one already knows they are soon going to extend it to something radically more dynamic.

Re:Show HN: Open – Free React landing page template by oefrha on Thursday April 16, 2020 @11:05AM (#22890120)
> who doesn't love particles!?

I don’t. Please don’t waste my cycles and battery on pointless visual effects (unless you’re a vfx company).

Re:Show HN: Open – Free React landing page template by folkhack on Thursday April 16, 2020 @02:09PM (#22891951)
Right - I get pretty angry when I watch activity on my CPU cores spike with opening a "pretty" website. If my CPU fan is revving because you're doing silly particle effects (usually sans WebGL) I'm not happy with your solution.