Skip to content

Commit 58f94ad

Browse files
committed
Prepare for 0.23 release
1 parent 2200a45 commit 58f94ad

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# React Router Component
22

3-
For React 0.12 support, see the [react-0.12](https://github.com/STRML/react-router-component/tree/react-0.12) branch. It should be stable, but please help us bugtest it.
3+
*React-Router-Component >= 0.23 uses React 0.12. If you need React 0.11 support,*
4+
*please use versions 0.20 through 0.22.2.*
45

56
React router component allows you to define routes in your [React][] application
67
in a declarative manner, directly as a part of your component hierarchy.
@@ -49,7 +50,7 @@ React router component is packaged on npm:
4950

5051
## Compatibility
5152

52-
Compatible with React 0.10 and 0.11. Support for 0.12 is experimental. See the [branch](https://github.com/STRML/react-router-component/tree/react-0.12).
53+
Compatible with React 0.12. Older versions work with older versions of React, see the commit log.
5354

5455
See [docs][] for the usage.
5556

tests/browser.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,13 @@ describe('Routing', function() {
9393
path: '/__zuul',
9494
foo: 'bar',
9595
ref: 'link',
96+
// To reach through a Location boundary, you must put a ref
97+
// on the Location itself, and the handler. We used to be able to just clone
98+
// the handler with the ref, but React now throws warnings on that use.
9699
handler: React.createClass({
97100
render: function() {
98101
return Link({
102+
ref: 'inner',
99103
foo: this.props.foo,
100104
href: '/__zuul/hello'
101105
}, 'mainpage')
@@ -226,7 +230,7 @@ describe('Routing', function() {
226230

227231
it('navigates via .navigate(path) call', function(done) {
228232
assertRendered('mainpage');
229-
router.refs.link.navigate('/__zuul/hello', function() {
233+
router.refs.link.refs.inner.navigate('/__zuul/hello', function() {
230234
assertRendered('hello');
231235
done();
232236
});

0 commit comments

Comments
 (0)