2018/10/18
ホームGatsbyUpgraded to Gatsby v2

Upgraded to Gatsby v2

This is a Gatsby v2 compatible version of the lumen starter, started by the folks at Gatsby Central.

test.jsx
import React from 'react'
import { Link, graphql } from 'gatsby'
import Helmet from 'react-helmet'
import kebabCase from 'lodash/kebabCase'
import Layout from '../components/Layout'
import Sidebar from '../components/Sidebar'

class TagsRoute extends React.Component {
 render() {
   const { title } = this.props.data.site.siteMetadata
   const tags = this.props.data.allMarkdownRemark.group

Here’s a little recommended reading for Gatsby v2.

If you do decide to upgrade, these articles will help you do that.

Finally, here’s a cheat sheet we prepared to help during the upgrade:


this is the template of WordPress like Gatsby blog, powered by gatsby-v2-starter-lumen.
itamaev2 on Twitter