Search code examples
meteorreactjsiron-router

Does using Meteor with React mean that you don't have to use IronRouter or FlowRouter?


I've been exploring more about Meteor with React but one question that hasn't been answered going through their documentation is whether React removes the need for a router or rather if it simply removes the need to bind the collection to the Router and abstracts that essentially rendering the router to only that function; routing.

Does this make sense?

What i'm trying to figure out is if IronRouter will suffice with my Meteor+React app or if I should move to the FlowRouter paradigm if I'm taking the reactive path anyways.


Solution

  • React can be used in conjunction with iron router or other routing systems provided in Meteor packages.

    Personally, I have integrated React Router, a routing system built on top of React, and use that and forgo both Blaze and any router built on top of Blaze. Doing so makes it easier for me to manage my routes and components in a single React component. I have a demo repository on Github that can be a good starting point as well as setup tutorial that goes through the repo step by step if you want to go down this path.