hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
984 stars 378 forks source link

Cannot show component for a page. #55

Open yamano-h opened 4 years ago

yamano-h commented 4 years ago

Hi,

I am trying to add a component for a page.

How do I display the components of a page under src / pages using the following repository? I can create new pages by adding components under the src/pages. But the pages show just blank pages. I don't know why...

I added a test.js (new simple component) under the src/pages

import React from "react"

export default () => (
    <div>Hello world!</div>
)

But the page for http://localhost:8000/test shows a just blank page.

Could you help me?

cmacmillan commented 3 years ago

https://github.com/hasura/gatsby-gitbook-starter/pull/79 should fix this