Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Lesson 13 - Rending HTML for root path ('/') #247

Open
@pisrael

Description

@pisrael

Following the lesson 13 tutorial I wasn't able to render the full server side HTML for the root path ('/'). This is a very important thing for apps that relies on SEO.

The router:
screen shot 2016-10-04 at 10 28 22 pm

The server code:
screen shot 2016-10-04 at 10 27 59 pm

The result for the URL localhost:8080
screen shot 2016-10-04 at 10 27 32 pm

Just as a benchmark, when requesting localhost:8080/about it works
screen shot 2016-10-04 at 10 33 02 pm

How could I fix this issue using ReactRouter and also get the full HTML for the root path?

[UPDATE]
I was able to fix it myself.

The solution is to delete index.html from the public folder.
I suggest in the tutorial to ask the reader to delete his index.html once server side rendering is completed.

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