There is a very good Tutorial for Gatsby on their website. Everything works fine but I've a problem to understand the difference in the starter templates.
What is the difference between the different react component usage in the starte templates? Why do they use export default...
for the hello world example, const IndesPage = () 0> (
for the default starter and class BlogIndes extends React.Componenent
for the blog example.
gatsby-starter-hello-world
export default () => <div>Hello world!</div>
gatsby-starter-default
const IndexPage = () => (
...
)
export default IndexPage
gatsby-starter-blog
class BlogIndex extends React.Component {
render() {
...
return (
...
)
}
}
export default BlogIndex