Skip to content

Commit

Permalink
Add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Oct 9, 2015
1 parent 8a3ea17 commit 42891a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/History.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 42891a2

Please sign in to comment.