Router for React + Meteor?


#1

Hey just wondering if anyone is using react over blaze in their apps and has a good recommendation for how to do routing!
I saw https://github.com/mystor/meteor-routecore but it looks like it might be weird to scale and handle reactivity on?

@arunoda I love how unobtrusive https://github.com/meteorhacks/flow-router is and you said you guys attempted some react integration! Wondering if you have a decent way of using flow-router with react.

thanks for the help!


#2

See: https://github.com/flow-examples/flow-router-react-example


#3

Thank you so much!

I can always count on meteor hacks to be my superman!


#4

I’ve used flow-router with React. It’s nice!


#5

If you want to use React and forgo Blaze, you can use React-Router. I’ve created a demo repo on Github to use as a starting point.


#6

I forgot to update here.
Now flow-router got better support for React with ReactLayout: https://github.com/kadirahq/meteor-react-layout/

Yep. react-router is good too. It has a different way to mentioning routes. FlowRouter use a separate place to keep routes and render components into layouts. You can also use FlowRouter’s API to reactively get content and change routes.

@alexgaribay FlowRouter has nothing to do with Blaze :slight_smile: