@just-web/history
v2.1.2
Published
just-web history plugin module
Downloads
2
Readme
@just-web/history
@just-web/history provides history API for a @just-web applications.
Install
# npm
npm install @just-web/history
# yarn
yarn add @just-web/history
# pnpm
pnpm install @just-web/history
#rush
rush add -p @just-web/history
Usage
import { justApp } from '@just-web/app'
import { historyGizmoFn } from '@just-web/history'
const app = await justApp({ name: 'your-awesome-app' })
.with(historyGizmoFn())
.create()
app.history...
You can also provide a custom history instance:
import { justApp } from '@just-web/app'
import { historyGizmoFn } from '@just-web/history'
import { createMemoryHistory } from 'history'
const app = await justApp({ name: 'your-awesome-app' })
.with(historyGizmoFn({ history:createMemoryHistory() }))
.create()