Live data from Hacker News

React Router: Declarative Routing for React

reacttraining.com

31–40 of 68 posts

Re: React Router: Declarative Routing for React

#31
This is a huge step forward in react routing. I'm still on v3, but very excited to switch. I love that I don't have to separate my thinking about routes vs normal components.

Ex. If I want to lazy load a route vs something below the fold, I can use the same HOC for both.

Re: React Router: Declarative Routing for React

#33
post #9

The docs are super good. I love the "embedded browser" that shows how it works. Shameless self plug: our book [1] has a whole chapter on Routing in React with this new v4 router. After you've finished reading the docs, if you want a tutorial style walk-through of this router v4, we build a Spotify-type clone over the course of 75+ pages. [1]: https://www.fullstackreact.com

I looked at your site. If you had video screencast that I could follow along. I would have paid for it.

We're going to have a (free) official video course up on the router site here within the next few weeks.

Re: React Router: Declarative Routing for React

#34
post #7

I look forward to the next API revision. Churning your API frequently turns me off as a developer who would rather not be deprecated out the gate.

I look forward to the day where people can improve upon their project based on gained knowledge without passive aggressive comments about the lack of back compat. This is how software improves. You are not forced to upgrade to the next version.

I look forward to the day when people can criticize a product for churning an API twice in one year without receiving the obligatory "if you don't like it, don't use it" cliché remark.

Improvement or not, to buy into a product that has churned twice in one year is a bad investment and for those who are lucky enough to not be caught in the middle - should be warned.

edit: I've used V4 and it's a vast improvement, but I stand by my remark.

Re: React Router: Declarative Routing for React

#35
post #9

The docs are super good. I love the "embedded browser" that shows how it works. Shameless self plug: our book [1] has a whole chapter on Routing in React with this new v4 router. After you've finished reading the docs, if you want a tutorial style walk-through of this router v4, we build a Spotify-type clone over the course of 75+ pages. [1]: https://www.fullstackreact.com

Over the last month (or so), I've been reading and reviewing React books on my blog [1]. I liked Fullstack React, but there is one big thing that keeps me from recommending it: most of the examples still use the createClass from ES5. For learning React in 2017, I (just my opinion) expect the book to fully embrace ES6/7 in all the examples.

[1]: https://medium.com/@jmcunningham/

Re: React Router: Declarative Routing for React

#37

Will there be a way to access query / search parameters? The URL Parameters example could benefit from a such an addition, if it's already possible. Something showing how to get the genre out of `/netflix?genre=mystery` would be lovely.

I believe what you're looking for is `location.query` which can be accessed by children of your router (via `this.props.location.query`)

Re: React Router: Declarative Routing for React

#38
post #13

The website is broken on mobile - elements overlap and content is not visible.

Slightly off topic, but do you find that docs really need to be mobile friendly? I'd personally rather the developer focuses on the actual project and all those concerns rather than a perfect responsive docs page. Esp when assuming most of these docs are eventually translated into markdown on github which are then mobile friendly.

The markdown doc is here: https://github.com/ReactTraining/react-router/tree/v4/packag...

Re: React Router: Declarative Routing for React

#40
post #9

The docs are super good. I love the "embedded browser" that shows how it works. Shameless self plug: our book [1] has a whole chapter on Routing in React with this new v4 router. After you've finished reading the docs, if you want a tutorial style walk-through of this router v4, we build a Spotify-type clone over the course of 75+ pages. [1]: https://www.fullstackreact.com

Over the last month (or so), I've been reading and reviewing React books on my blog [1]. I liked Fullstack React, but there is one big thing that keeps me from recommending it: most of the examples still use the createClass from ES5. For learning React in 2017, I (just my opinion) expect the book to fully embrace ES6/7 in all the examples. [1]: https://medium.com/@jmcunningham/

Yes, we're fixing that as we speak. It will be up to date shortly.
Post reply on HN