Getting started
Installation
bash
npm install mobx-swiss-knife
bash
yarn add mobx-swiss-knife
bash
pnpm add mobx-swiss-knife
Usage
ts
import {
TabManager,
Time,
} from "mobx-swiss-knife";
const tabs = new TabManager({
tabs: [
{ id: 'foo', label: 'Foo' },
{ id: 'bar', label: 'Bar' },
],
fallbackTab: 'foo',
});
const time = new Time({
updatePer: 1 * 1000,
})
console.log('time', time.value);