Should be use `Flow Router OR React Router` for Meteor + React

I base on Meteor+Vue.
Now I would like to try Meteor + React.
Which one better Flow Router VS React Router?
Please advise…

1 Like

You can use either. I think it just comes down to personal preference. Personally, I prefer FlowRouter as it’s much easier to work with in my experience.

1 Like

Go with React Router as it is more in tune with React…but my personal favorite these days is Reach Router from one of the original creator of React Router, Ryan Florence.

1 Like

Reach router is going to be merged into react-router:

2 Likes

thanks for all, I will try FlowRouter first.
But I found many meteor package for FlowRouter .
Which one? this one https://github.com/VeliovGroup/flow-router

1 Like

Thanks for the update!

1 Like

If you’re using FlowRouter on React project, please drop your thoughts/links here — https://github.com/VeliovGroup/flow-router/issues/72

1 Like

I prefer react router for 2 reasons. Mostly, I prefer it in general. I find it easier to work with than Flow Router. Also, it’s portable - if I ever needed to move to another platform, I wouldn’t have to worry about porting the router.

(I will also say that in a Blaze project, it’s Flow Router all the way. Now that I’m thinking about it - I wonder if it would suit Svelte. I’ve had trouble with svelte-routing.)

3 Likes

Very thanks for all.
I will try :blush:

FlowRouter isn’t supported anymore (last update 4 years ago), ReactRouter is, I think it should be clear what to use :slight_smile:

I used both and would choose React Router. It took me a while to adopt it, because the concepts are pretty different. But React Router is way better adopted to the rest of the React ecosystem.

FlowRouter only makes sense if you want to combine Blaze and React. But this is not really a good option. I tried this when upgrading a Blaze app, but it lead to a lot of headaches.

2 Likes

@waldgeist, thanks for your reply :blush:

Excuse me, @waldgeist @zhe1ka
Could you share sample app for Meteor + React Router?

React-router

  • currently updated and maintained
  • goes with the react way of doing things e.g. hooks, hoc
1 Like

@theara, this current project in beta that we are working on is using Meteor + React

1 Like

Could you share your source code?

Oh, you need a sample source code app. Sorry, this is a proprietary project and it is quite sizeable.