JSPM

  • Created
  • Published
  • Downloads 433
  • Score
    100M100P100Q94968F
  • License MIT

Manage the URL history with React

Package Exports

  • react-history
  • react-history/BrowserHistory
  • react-history/HashHistory
  • react-history/LocationUtils
  • react-history/MemoryHistory
  • react-history/PathUtils

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-history) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-history npm package

react-history provides tools to manage the URL history using React.

Installation

Using npm:

$ npm install --save react-history

Then with a module bundler like webpack, use as you would anything else:

// using an ES6 transpiler, like babel
import { BrowserHistory } from 'react-history'

// not using an ES6 transpiler
var BrowserHistory = require('react-history').BrowserHistory

The UMD build is also available on npmcdn:

<script src="https://npmcdn.com/react-history/umd/react-history.min.js"></script>

You can find the library on window.ReactHistory.