1.0.4 • Published 2 years ago
simple-history v1.0.4
simple-history
import SimpleHistory from 'simple-history'
const id = SimpleHistory.listen((action, preUrl, location) => {
console.log(action, preUrl, location)
})
SimpleHistory.unlisten(id)
SimpleHistory.push(url, state)
SimpleHistory.replace(url, state)
SimpleHistory.go(n)
SimpleHistory.back()
SimpleHistory.forward()