diff --git a/modules/History.js b/modules/History.js index 5f75552dc2..004a29b68f 100644 --- a/modules/History.js +++ b/modules/History.js @@ -1,8 +1,13 @@ import { history } from './PropTypes' +/** + * A mixin that adds the "history" instance variable to components. + */ const History = { - contextTypes: { history }, + contextTypes: { + history + }, componentWillMount() { this.history = this.context.history