@wazabii/statehandler

1.0.1 • Public • Published

StateHandler

A super lightweight and platform-agnostic push state handler.

Usage

let handler = new StateHandler();
//Access push state change
handler.state((updatedRoute) => {
	console.log('State update:', updatedRoute);
});
// push to state
handler.pushState('#why-hello-thar');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @wazabii/statehandler

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

13.9 kB

Total Files

4

Last publish

Collaborators

  • wazabii