You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you do not specify a history type (as in the example above) then you will notice some unusual behaviour after updating to 1.0.0. With the default hash based routing a querystring entry not defined by yourself will start appearing in your URLs called `_k`. An example of how it looks is this: `?_k=umhx1s`
70
70
71
-
This is intended and part of [createHashHistory](https://github.com/rackt/react-router/blob/master/docs/guides/Histories.md#createhashhistory) (which is the default history approach used if one is not specified). You can read more about the feature [here](https://github.com/rackt/react-router/blob/master/docs/guides/Histories.md#what-is-that-_kckuvup-junk-in-the-url) and how to opt out [here](https://rackt.github.io/history/stable/HashHistoryCaveats.html).
71
+
This is intended and part of [createHashHistory](/docs/guides/Histories.md#createhashhistory) (which is the default history approach used if one is not specified). You can read more about the feature [here](/docs/guides/Histories.md#what-is-that-_kckuvup-junk-in-the-url) and how to opt out [here](https://reactjs.org/history/stable/HashHistoryCaveats.html).
72
72
73
73
### Route Config
74
74
@@ -83,7 +83,7 @@ parents just like before but prop names have changed.
83
83
<Route path="about" component={About}/>
84
84
```
85
85
86
-
Named routes are gone (for now, [see discussion](https://github.com/rackt/react-router/issues/1840))
86
+
Named routes are gone (for now, [see discussion](https://github.com/reactjs/react-router/issues/1840))
87
87
88
88
### NotFound route
89
89
@@ -240,7 +240,7 @@ var Assignment = React.createClass({
240
240
var Assignment =React.createClass({
241
241
mixins: [ History ],
242
242
navigateAfterSomethingHappened () {
243
-
// the router is now built on rackt/history, and it is a first class
243
+
// the router is now built on reactjs/history, and it is a first class
Copy file name to clipboardExpand all lines: upgrade-guides/v2.0.0.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
### Goals
6
6
7
-
You might enjoy reading this issue: https://github.com/rackt/react-router/issues/2646
7
+
You might enjoy reading this issue: https://github.com/reactjs/react-router/issues/2646
8
8
9
9
1. Clear up the coupling between History and Router with simpler APIs.
10
10
@@ -26,7 +26,7 @@ The deprecation warnings should also lead you to the relevant part of this docum
26
26
27
27
### Upgrade Automatically with Codemods
28
28
29
-
Using a tool called [jscodeshift](https://github.com/facebook/jscodeshift), we have made available some codemods for upgrading your code to the new APIs automatically: https://github.com/rackt/rackt-codemod
29
+
Using a tool called [jscodeshift](https://github.com/facebook/jscodeshift), we have made available some codemods for upgrading your code to the new APIs automatically: https://github.com/reactjs/rackt-codemod
30
30
31
31
A codemod is much like Babel, but instead of converting your ES2015 code to ES5 compatible syntax, it does a limited set of transformations on function names, arguments, common patterns and more. One way to think of jscodeshift (the underlying tool) is "jQuery for code". These codemods aren't bulletproof, so be sure to test your code after you run them. But they can help with upgrading a large codebase to remove deprecation warnings you're now triggering.
0 commit comments