Skip to content

Commit 82896c3

Browse files
committed
Merge pull request #3386 from anonymosh/patch-1
Fix example for withRouter
2 parents 177ec18 + 882d000 commit 82896c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upgrade-guides/v2.4.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Page = React.createClass({
2525

2626
})
2727

28-
export default withRouter(Login)
28+
export default withRouter(Page)
2929
```
3030

3131
**It's important to note this is not a deprecation of the `context` API.** As long as React supports `this.context` in its current form, any code written for that API will continue to work. We will continue to use it internally and you can continue to write in that format, if you want. We think this new HoC is nicer and easier, and will be using it in documentation and examples, but it is not a hard requirement to switch.

0 commit comments

Comments
 (0)