@just-web/history
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

@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()

Readme

Keywords

Package Sidebar

Install

npm i @just-web/history

Weekly Downloads

4

Version

2.1.2

License

MIT

Unpacked Size

16.1 kB

Total Files

52

Last publish

Collaborators

  • unional