We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01fded0 commit bf69559Copy full SHA for bf69559
upgrade-guides/v2.0.0.md
@@ -199,3 +199,26 @@ import { RoutingContext } from 'react-router'
199
// v2.0.0
200
import { RouterContext } from 'react-router'
201
```
202
+
203
204
+## `RouteContext` Mixin
205
206
+```js
207
+// 1.x
208
+const RouteComponent = React.createClass({
209
+ mixins: [ RouteContext ]
210
+})
211
212
+// 2.0.0
213
214
+ contextTypes: {
215
+ route: React.PropTypes.object
216
+ },
217
+ getChildContext() {
218
+ return {
219
+ route: this.props.route
220
+ }
221
222
223
+```
224
0 commit comments