Skip to content

Commit 42891a2

Browse files
committed
Add doc comment
1 parent 8a3ea17 commit 42891a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/History.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import { history } from './PropTypes'
22

3+
/**
4+
* A mixin that adds the "history" instance variable to components.
5+
*/
36
const History = {
47

5-
contextTypes: { history },
8+
contextTypes: {
9+
history
10+
},
611

712
componentWillMount() {
813
this.history = this.context.history

0 commit comments

Comments
 (0)