gatsby-gitbook-starter icon indicating copy to clipboard operation
gatsby-gitbook-starter copied to clipboard

Cannot show component for a page.

Open yamano-h opened this issue 5 years ago • 1 comments

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?

yamano-h avatar Feb 12 '20 01:02 yamano-h

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

cmacmillan avatar Oct 06 '20 06:10 cmacmillan