UNPKG

react-router

Version:

A complete routing library for React.js

23 lines (16 loc) 404 B
'use strict'; exports.__esModule = true; var _PropTypes = require('./PropTypes'); /** * A mixin that adds the "history" instance variable to components. */ var History = { contextTypes: { history: _PropTypes.history }, componentWillMount: function componentWillMount() { this.history = this.context.history; } }; exports['default'] = History; module.exports = exports['default'];