这是indexloc提供的服务,不要输入任何密码
Skip to content

Cannot show component for a page. #55

@yamano-h

Description

@yamano-h

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions