Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to use with react-router #23

Open
simonschllng opened this issue Jun 9, 2016 · 1 comment
Open

Best way to use with react-router #23

simonschllng opened this issue Jun 9, 2016 · 1 comment

Comments

@simonschllng
Copy link

simonschllng commented Jun 9, 2016

I'm planning to implement react-document-meta but am already using react-router. Where should I place the top-most <DocumentMeta />?

The following does not seem to work:

    <Router (..)>
        <DocumentMeta />
        <Route ... ></Route>
    </Router>
@danieljuhl
Copy link
Contributor

@simonschllng You probably have an outer most route to handle you basic layout, right? In that case, simply place it as the outer most element in that component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants