When comparing Hugo vs Gatsby JS, the Slant community recommends Hugo for most people. In the question“What are the best static site generators?” Hugo is ranked 5th while Gatsby JS is ranked 6th. The most important reason people chose Hugo is:
Code can be viewed [on GitHub](http://github.com/spf13/hugo).
Ranked in these QuestionsQuestion Ranking
Pro Open-source and free
Code can be viewed on GitHub.
Pro Single Binary - Cross Platform
Pro No dependencies
All other SSGs expect you to have a full toolchain setup for their language. Hugo is written in Go and distributed as an executable for unix, linux, windows and mac. Just download and run.
Pro Clean workflow
Create your new site, run the Hugo server, edit. Lather, rinse, repeat. Hugo stays out of the way.
Pro Good documentation
Pro Many themes available
Pro Draft mode
Allows you to see changes in real time.
Pro Very active community
Pro Easy to add new content types, data files, and taxonomies
Pro No page reload when navigating
Pro Based on React.js
Editing markup is phenomenally easy when you have components.
Pro A lot of plugins
Gatsby offers a lot of plugins to integrate tools like SASS, typescript, styled components, etc.
Pro Live reload
Every change you make can be almost immediately seen in a browser.
Pro Open Source
Pro Take content from any source
Gatsby can generate the pages with content from any sources like Drupal, Wordpress, Contentful, etc. If the source plugin is not coded for your solution, you can create it.
Pro A static site and a React app in one
The static pages are generated by Server Site Rendering of the React app. So you have all benefits of a static site, and all benefits of a React app, which is very powerful.
Pro GraphQL Data Layer
Pro A lot of examples
Gatsby have a lot of examples sites in his github repository.
Pro Very active development
Gatsby is very actively developed and the maintainers are very helpful.
Pro Beautiful out-of-the-box blog starters
Pro Built-in code and data splitting
Con No tutorial on how to create a theme from scratch
Con A bit raw
You'll maybe have to tweak some JSX if you want something that's not covered by available themes.