Live data from Hacker News

React Router v5

reacttraining.com

1–10 of 90 posts

Re: React Router v5

#2
I usually shudder when I see React Router major versions which usually result in hard breaks that takes hours to migrate existing code bases to, so I'm pleasantly surprised to see:

> v5 is fully backwards compatible with 4.x

It appears the major version bump was due to package configuration changes instead of major API code changes.

Re: React Router v5

#3
post #2

I usually shudder when I see React Router major versions which usually result in hard breaks that takes hours to migrate existing code bases to, so I'm pleasantly surprised to see: > v5 is fully backwards compatible with 4.x It appears the major version bump was due to package configuration changes instead of major API code changes.

Yeah that was my first reaction when I saw the title, "How hard is it going to be this time?" since it took me 2 days to migrate to the v4 last time.

Re: React Router v5

#5
We migrated from React Router to Reach Router (https://reach.tech/router) and found it to be better in a few ways:

* Built-in focus management.

* Smaller library size.

* Implicit route matching that Just Works.

* More comprehensive docs with live examples.

Migration was easy. Highly recommended.

Re: React Router v5

#6
Probably the least stressful major version bump I've seen. Props to the team for solving the 4.4.x problem and pushing this out. Took a few minutes to update and now everything is great!

Re: React Router v5

#7
post #2

I usually shudder when I see React Router major versions which usually result in hard breaks that takes hours to migrate existing code bases to, so I'm pleasantly surprised to see: > v5 is fully backwards compatible with 4.x It appears the major version bump was due to package configuration changes instead of major API code changes.

Same reaction here! Jumping from 2 -> 4 was a pretty big change to our codebase. Glad for this.

Re: React Router v5

#8
post #5

We migrated from React Router to Reach Router ( https://reach.tech/router ) and found it to be better in a few ways: * Built-in focus management. * Smaller library size. * Implicit route matching that Just Works. * More comprehensive docs with live examples. Migration was easy. Highly recommended.

This looks great! Thank you

Re: React Router v5

#9
post #5

We migrated from React Router to Reach Router ( https://reach.tech/router ) and found it to be better in a few ways: * Built-in focus management. * Smaller library size. * Implicit route matching that Just Works. * More comprehensive docs with live examples. Migration was easy. Highly recommended.

This looks very similar to preact router.
Post reply on HN