Repository navigation
v0.11.0
breaking change
- implement history library for Stack extended class #32
The Stack extended class constructor change:
$root: App root element (witch takes data-component="App" attribute)history: History mode can be BROWSER, HASH, MEMORY.props: Props key/values object.
{
$root: HTMLElement
history: BrowserHistory | HashHistory | MemoryHistory
props?: Props
}index.ts:
import { App } from "./App"
import { createBrowserHistory } from "history"
const app = new App({
$root: document.querySelector(".App"),
history: createBrowserHistory(),
props: { foo: "bar" },
})