GithubHelp home page GithubHelp logo

Strongly recommend "Reading" about React Router v4 or strongly recommend using that instead of this module? about react-router-transition HOT 1 CLOSED

maisano avatar maisano commented on June 16, 2024
Strongly recommend "Reading" about React Router v4 or strongly recommend using that instead of this module?

from react-router-transition.

Comments (1)

maisano avatar maisano commented on June 16, 2024 1

hi @iDVB! here are some sentiments of mine on this project and react-router:

whether or not to use react-router-transition depends on how much lock-in you have with v2. v4 of react-router is much more flexible and affords more granularity in declaring routes. it does have some drawbacks (possible route/design fragmentation, more architectural onus on users, etc.) but overall it seems like a great direction for the library.

honestly, RouteTransition, is not coupled react-router in any way whatsoever. the only inherent thing typing it to router is the pathname prop, which should technically be called key. in actuality the library a thin abstraction on top of TransitionMotion in an effort to make the api easier to work with–react-motion is great, as is its api, but the learning curve is steep.

last, and perhaps more weird, i don't use this library myself. i wrote the code for it when react-motion was first announced, as we were experimenting with react-router where i work and needed route transitions. that project was abandoned, but i posted a gist of RouteTransition to share the code with folks who wanted to try motion in the router. it was easier/more self-documenting to just turn it into a lib and publish it than to field questions in the gist, so i made this.

all that said, i would try using it. it might work for you. it might not. it should definitely help you prototype what you're looking for, and maybe you'll find it works for you. maybe you'll find that you need more control and just want to use react-motion directly.

from react-router-transition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.