# tiny-mst-router

> A tiny mobx-state-tree router

Latest version **2.0.0** (published 2020-07-01) · 0 weekly downloads

## Install

```sh
npm install tiny-mst-router
pnpm add tiny-mst-router
yarn add tiny-mst-router
bun add tiny-mst-router
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-07-01 |
| First published | 2020-02-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | nfour |
| Maintainers | tyas.kusumo |
| Keywords | mobx-state-tree, mobx, router, react |

## Links

- npm: https://www.npmjs.com/package/tiny-mst-router
- Repository: https://github.com/nfour/tiny-mst-router
- Homepage: https://github.com/nfour/tiny-mst-router#readme
- Issues: https://github.com/nfour/tiny-mst-router/issues
- npm.io page: https://npm.io/package/tiny-mst-router

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ~4.17.15

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-07-01
- 1.1.1 — 2020-02-12
- 1.1.0 — 2020-02-12

## README

# Tiny Mobx State Tree Router

It's only [one file](./TinyMstRouter.ts). Based on [/alisd23/mst-react-router](https://github.com/alisd23/mst-react-router)

## Usage

```ts
import { TinyMstRouter } from 'tiny-mst-router';

const router = TinyMstRouter.create({})

router.push('/myroute')

// or add it to your root model

export const RootModel = types.model({
  router: TinyMstRouter,
  // ...
})
```

## Install

- Dont forget the peer dependencies.
- Requires `history@5`

```json
"peerDependencies": {
  "mobx": ">=5",
  "mobx-state-tree": ">=3",
  "history": ">=5"
}
```

`yarn add tiny-mst-router mobx mobx-state-tree history@5`

---
_Source: https://npm.io/package/tiny-mst-router · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
