Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 606 Bytes

Installation.md

File metadata and controls

25 lines (16 loc) · 606 Bytes

Installation

The history library is published to the public npm registry. You can install it using:

$ npm install --save history

Then, use as you would anything else:

// using ES6 modules
import { createBrowserHistory } from 'history';

// using CommonJS modules
var createBrowserHistory = require('history').createBrowserHistory;

Using Globals

If you really just want a <script> tag, the UMD build is available on unpkg:

<script src="https://unpkg.com/history"></script>

You can find the library on window.History.