react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

Use react-router

Open jakecraige opened this issue 12 years ago • 36 comments

How do you feel about using react-router instead of a custom basic routing approach? It seems to be getting super popular and the fact that it's build for react makes me like it a lot more anyways

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

jakecraige avatar Oct 01 '14 03:10 jakecraige

I personally lean towards Flux-based router. Yahoo guys are working in this direction and there is also react-crossroads. Defining routes with JSX/XML looks odd to me. React components already describe view hierarchy, no need to re-implement that at the routing level.

koistya avatar Oct 04 '14 00:10 koistya

+1. React-router is doing isomorphic, trying turning off JS for http://react-router-mega-demo.herokuapp.com/ :)

winkler1 avatar Nov 04 '14 17:11 winkler1

+1 to react-router

mewben avatar Nov 18 '14 07:11 mewben

+1 to react-router as well

WRidder avatar Nov 18 '14 07:11 WRidder

+1 to react-router

mofas avatar Nov 28 '14 15:11 mofas

+1 to react-router

Tailzip avatar Dec 09 '14 17:12 Tailzip

Both are isomorphic, but I guess attaching to a formal react based router is a good choice

+1 to react-router

sdiaz avatar Jan 15 '15 15:01 sdiaz

I on the same page with @koistya we shouldn't JSXify everything now, just because we can.

radum avatar Feb 02 '15 15:02 radum

Another +1 for react router. It seems like this is becoming the de-facto router to use with react and building isomorphic applications with it is quite trivial.

I actually have an example here that shows how you're able to build isomorphic applications using react-router and flux.

goatslacker avatar Feb 08 '15 02:02 goatslacker

+1

majodev avatar Mar 25 '15 09:03 majodev

+1

markopavlovic avatar Mar 25 '15 12:03 markopavlovic

Has anyone successfully gotten this to work on their own project/fork? Would love to see the implementation details. I've only encountered errors trying to integrate it in.

patrickng avatar Apr 23 '15 04:04 patrickng

  • 1 for seeing a fork with react-router implemented

the4dpatrick avatar May 06 '15 02:05 the4dpatrick

+1

timdoes avatar May 08 '15 00:05 timdoes

+1

latifs avatar May 27 '15 02:05 latifs

+1 to react-router

aleksichen avatar Jul 08 '15 15:07 aleksichen

+1 for react-router

soulmachine avatar Oct 31 '15 00:10 soulmachine

+1 for react-router

luqin avatar Oct 31 '15 05:10 luqin

+1

abachuk avatar Nov 12 '15 12:11 abachuk

Yeah I'd really like to see an example

9mm avatar Nov 19 '15 17:11 9mm