Skip to content

Commit 882d000

Browse files
committed
Fix example for withRouter
No Login component has been defined, i guess "Page" was meant
1 parent 177ec18 commit 882d000

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)