News for hackers. Stuff that matters.
Re:New React website by hungerstrike on Friday September 29, 2017 @01:35PM (#15367336)
This is very timely for me - I was just looking for a new static site generator and so far I've tried out Hugo, Hexo and Jekyll but I didn't like any of them because they're so configuration dependent. I'd rather write my static pages using tools that I already know how to use.

Searching for a static site generator that uses React, I found Phenomic first then Gatsby. I was already leaning towards Gatsby since Phenomic is still in alpha. Now that Facebook is using it, my decision is easy. Phenomic looks like it can do a lot more than Gatsby, so maybe I'll give it a second chance in the future.

Re:New React website by creatonez on Friday September 29, 2017 @02:48PM (#15368010)
>a static site generator that uses React

Does this mean the HTML is constructed by rendering components to strings using ReactDOMServer, or that the frontend scripts use React? Or both?

Re:New React website by kylemathews on Friday September 29, 2017 @02:56PM (#15368088)
Both. Checkout gatsbyjs.org, the tool the site was built with. But basically Gatsby renders each page to HTML and writes it out to disk similar to other static site generators. And then when the HTML loads, it pulls in JavaScript to make the site "live" so that from then on out it acts like a normal React web app.

Gatsby is an attempt to blend the best aspects of static site generators and web apps.

Re:New React website by tedmiston on Friday September 29, 2017 @02:48PM (#15368005)
Does it say on the page somewhere that this site is built with Gatsby?
Re:New React website by kylemathews on Friday September 29, 2017 @02:53PM (#15368060)
Re:New React website by tedmiston on Friday September 29, 2017 @03:59PM (#15368628)
Thanks - I need a good way to view source on iOS.
Re:New React website by coisnepe on Tuesday October 03, 2017 @05:39AM (#15391240)
Check out Working Copy, which I use extensively but I'm not sure it's what your looking for exactly (I'm not affiliated). I think there's iOctocat if you're just looking for a way to browse github repos.
Re:New React website by tedmiston on Tuesday October 03, 2017 @12:32PM (#15393658)
Thanks, I'll check them out. Specifically, I'm looking for a way to view source (really DOM) of an arbitrary webpage in the browser.