maisano / react-router-transition

painless transitions built for react-router, powered by react-motion
http://maisano.github.io/react-router-transition/
MIT License
2.59k stars 138 forks source link

Added V4 example #42

Closed jonnyscholes closed 7 years ago

jonnyscholes commented 7 years ago

Added the note as a lot of the examples (and issues other people were having solved for them) I saw when researching this were assuming the old RRV2/3 syntax still worked.

maisano commented 7 years ago

@jonnyscholes this is dope, thanks for adding it! one thing that sucks about the current api of RouteTransition working with v4 is that there are potentially mismatched or duplicative keys–in this example Switch is forking on location.key and RouteTransition is forking on pathname.

i'll probably rewrite the wrapper soon and only support v4 going forward.