Skip to content

Transitioning between dynamic routes #116

Open
@MattJarman

Description

@MattJarman

Hey, I'm pretty new to react and I'm trying to get transitions working for the following example:

import React from 'react';
import { Route } from 'react-router-dom';
import { AnimatedSwitch } from 'react-router-transition';
import User from '../user';

const App = () => (
  <div className="container">
    <AnimatedSwitch>
      <Route path="/:id" component={User} />
    </AnimatedSwitch>
  </div>
);

export default App;

Is it possible to transition in this case e.g. between /1 and /2?

Sorry if this isn't the right place for asking this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions