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

Does it work with react-router-dom v6+? #104

Open
rvision opened this issue Jul 22, 2022 · 0 comments
Open

Does it work with react-router-dom v6+? #104

rvision opened this issue Jul 22, 2022 · 0 comments

Comments

@rvision
Copy link

rvision commented Jul 22, 2022

I'm struggling to make it work with react-router, what should XyzTransition wrap?
thanks

<BrowserRouter>
  <XyzTransition appear xyz="fade in-left-100% out-right-100%" mode="out-in">
    <div>
      <Routes>
        <Route path="/" element={<IndexPage />}>
          <Route path="settings" element={<SettingsPanel />} />
          <Route path="users" element={<UsersModal />} />
        </Route>
        <Route path="*" element={<NotFoundPage />} />
      </Routes>
    </div>
  </XyzTransition>
</BrowserRouter>


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

1 participant