Live data from Hacker News

Show HN: Open – Free React landing page template

github.com

41–50 of 79 posts

Re: Show HN: Open – Free React landing page template

#41
post #5

Using React is really bad for your SEO. If you want to use React, use something like Nextjs or Gatsby to compile it into a static HTML website.

If you want to use React, use something like Nextjs or Gatsby to compile it into a static HTML website.

Gatsby doesn't compile to a static HTML website. It compiles to a static site. There's a subtle difference. The pages are rendered on the server and served as static assets, but the entire React routing and content loading is still there. When a visitor loads a page it renders and then gets turned from plain HTML back in to a React again. When you navigate from one page to the next all the content for further pages is preloaded. You are not loading a full HTML page for each link you click on (which is exactly what makes it feel so lovely and fast - everything is being preloaded behind the scenes).

Re: Show HN: Open – Free React landing page template

#42

Why react?

Why not? It's the most popular UI framework. The second you start building a SAAS product on top of those pages, you're not going to want to be in vanilla land.

IMO landing pages and SaaS applications should be different projekts/repos

Re: Show HN: Open – Free React landing page template

#43
post #9

What's the advantage of using React for a landing page that could be a 10KB static HTML file ? (non-sarcastic question)

I can learn react and I can apply everywhere. Reuse my react components with styles. No global css class flying around. After a few pages static html becomes a pain to maintain.

Plus I don't like static html. If I setup webpack (you want different files, proper es6, imports...) You can easily add react.

No need to shift your thinking between static html and react.

Much easier to have 100 websites just with react. Can share components, hooks...

End of the day, faster Dev time, consistent projects, more enjoyable experience, reusable components. I trade that for a few Ms of speed.

Re: Show HN: Open – Free React landing page template

#44
post #14

This is not a good use case for react. At all. A landing page should do one thing and one thing well: drive an action. The less distracting interactivity the better. The only thing you want interactive are your CTAs. The overhead of using React, even if using a static site generator, isn’t worth it. Not when you can whip up a simple HTML/CSS page in less time that’s far far easier to build and deploy. Because the fas…

I can develop faster in react than static html... Once you need a/b testing you're screwed with the static HTML. You got to start adding more logic in your spaghetti Js and then you can't even reuse html. Boom, looks like a mess now

Re: Show HN: Open – Free React landing page template

#45
As others have pointed out, you could use a static html page, vanilla js, etc, but ignoring this, I see value for future learning. Sure, there are alternatives, but it looks like the industry wants React skills. I've never used React, and I'm pretty new to web design, so this makes me interested in learning. It's a small project, one which I could modify and study.

This is how I got into making my own website. I came across BMFW [0], and studied the CSS file. I styled my plain html, adapted their CSS, and then kept going, finding inspiration from other sites and projects along the way. Almost 4 years later, my site [1] is a lot better, though still not perfect or finished.

I plan to download this React template, and use it as a learning opportunity. I'm definitely more interested in learning Vue or another hipster ass framework, but at this point I've done zero learning. Gotta start somewhere.

[0] http://bettermotherfuckingwebsite.com/

[1] https://www.calebyers.com/about.html

Re: Show HN: Open – Free React landing page template

#46

Earlier quoted context omitted.

Why not? It's the most popular UI framework. The second you start building a SAAS product on top of those pages, you're not going to want to be in vanilla land.

Uhm, probably not the best idea to mix your saas application, with your business website. I would definitely not recommend that. And i will also echo the other comments, saying that this is definitely overkill. If you're doing a single landing page, jsut go with static html/css. If you need some content management, then either go with a fully fledged CMS or do the hipster thing and compile into static site.

Most likely you'll share some parts... Having 2 systems (html and react) much higher cost of maintenance than just 1 in react at a small overhead

Re: Show HN: Open – Free React landing page template

#47
post #9

What's the advantage of using React for a landing page that could be a 10KB static HTML file ? (non-sarcastic question)

I'm seeing 714kb of data loaded over 924ms. Not as small as possible, but I don't think this really qualifies as bloat. Imo the benefits of using React boilerplate for a landing page would be: - Quick to set up / customize (faster than starting from scratch in vanilla js, anyway) - Flexible. Allows devs to quickly pivot the landing page into a "landing page + [whatever]" if needed If pure speed to load is your endgoa…

700kb is bloated for a basic landing page.

Websites should be as small as possible (max 100Kb).

A static page outperforms React, especially if systems like Hugo or Jekyll are used to keep themes separated from content

Re: Show HN: Open – Free React landing page template

#48
post #43
post #9

What's the advantage of using React for a landing page that could be a 10KB static HTML file ? (non-sarcastic question)

I can learn react and I can apply everywhere. Reuse my react components with styles. No global css class flying around. After a few pages static html becomes a pain to maintain. Plus I don't like static html. If I setup webpack (you want different files, proper es6, imports...) You can easily add react. No need to shift your thinking between static html and react. Much easier to have 100 websites just with react. Can…

Templating isn't a React-only feature, there are other frameworks that give you that.

Using React for a static landing page is like using a flamethrower to light a birthday candle.

Re: Show HN: Open – Free React landing page template

#49
post #44
post #14

This is not a good use case for react. At all. A landing page should do one thing and one thing well: drive an action. The less distracting interactivity the better. The only thing you want interactive are your CTAs. The overhead of using React, even if using a static site generator, isn’t worth it. Not when you can whip up a simple HTML/CSS page in less time that’s far far easier to build and deploy. Because the fas…

I can develop faster in react than static html... Once you need a/b testing you're screwed with the static HTML. You got to start adding more logic in your spaghetti Js and then you can't even reuse html. Boom, looks like a mess now

There are a number of assumptions here:

1. I’m using that much JS 2. Said JS is spaghetti 3. My split testing tool needs integrating with my ‘spaghetti JS’ 4. I’m creating enough landing pages the overhead of duplicate HTML/CSS is high

In reality, if I’m starting out quick:

1. I’ll use little JS because it isn’t necessary 2. The JS I do write isn’t large enough to become spaghetti 3. I’ll duplicate it twice and rethink if and only if I need yet another similar LP 4. Use an off the shelf split testing tool because they work and I need to move quickly

The faster I can get traffic to my landing page, the sooner I learn. On a new business, I’m starting from nothing. So HTML/CSS it is.

The most problematic assumption you’ve made is that if it’s not React, it’s spaghetti. I see this line of thinking trotted out by many React enthusiasts. And maybe for sufficiently complex frontend projects, there’s truth. But you know what also eliminates JS spaghetti? Not using JS unless it’s necessary. It’s possible and desirable to use as little JS as possible.

For example, if I want to generate leads, I need at least one but maybe all of these CTAs:

1. A form 2. A phone number / call button

That’s it. Where is the need for JS here?

Now if you told me your landing page included a full interactive demo of certain features of a SaaS product, which sounds cool and worth testing, I’d entertain using React. But that’s assuming all landing pages I ever need to create are for SaaS sign ups. Even for a SaaS, that assumes the conversion is a SaaS sign up. Right off the bat, a SaaS might (and probably should) want to:

1. Increase mailing list sign ups 2. Generate leads for higher priced plans (or all plans if you need to talk to sales) 3. Offer a free resource and retarget

Where’s the JS here? In both cases, it’s a form or a button at most.

As I said in my original comment, I’m not one of those that discounts SPAs. It’s useful and I’ve had great results. But if I’m outsourcing an LP, and the proposal outlines React as a solution, I’m gonna pass. Wrong tool for the job.

Re: Show HN: Open – Free React landing page template

#50
post #14

This is not a good use case for react. At all. A landing page should do one thing and one thing well: drive an action. The less distracting interactivity the better. The only thing you want interactive are your CTAs. The overhead of using React, even if using a static site generator, isn’t worth it. Not when you can whip up a simple HTML/CSS page in less time that’s far far easier to build and deploy. Because the fas…

Damn good stuff here. Can you build me a landing page to test a new business? :-)

Let’s talk, james@happyshrimp.co.uk :)
Post reply on HN