Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to use router with server side rendering #477

Closed
@optimatex

Description

@optimatex

As I know, isomorphic apps use the same routing as on a client. That's means server should always return index.html page and routes should be handled by react-router or something like this when are rendered on the server side. Otherwise, after the page is loaded any future route change will lead to page reload.
How can I implement this tenet in the approach described here since I need to pass the appropriate model to @Html.React? Should it be something like server side routing with the single concern to retrieve the corresponding model based on the current route?
thank you for your hard work

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