Skip to content

Provide a way to disable rendering div for Router #63

@chenxsan

Description

@chenxsan

Feature Request?

My root node has css like this:

display: flex;
flex-direction: column;
height: 100vh;

When Router renders a div, it breaks my layout:

image

I found there's no way to disable it in the code https://github.com/reach/router/blob/master/src/index.js#L336.

It would be great if I can pass false or null value to component prop of Router like this to disable rendering the div:

<Router component={null}>
 ...
</Router>

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