https://github.com/ujjwalguptaofficial/mahal-store
Store module for mahal framework
https://github.com/ujjwalguptaofficial/mahal-store
godam mahal-framework state-management store
Last synced: 7 months ago
JSON representation
Store module for mahal framework
- Host: GitHub
- URL: https://github.com/ujjwalguptaofficial/mahal-store
- Owner: ujjwalguptaofficial
- License: apache-2.0
- Created: 2021-09-25T04:31:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T05:29:01.000Z (about 2 years ago)
- Last Synced: 2025-03-06T07:38:09.408Z (8 months ago)
- Topics: godam, mahal-framework, state-management, store
- Language: TypeScript
- Homepage:
- Size: 2.57 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://osnft.app/nft/mahal-store@ujjwalguptaofficial)
[](https://badge.fury.io/js/@mahaljs%2Fstore)
[](https://github.com/ujjwalguptaofficial/mahal-store/actions/workflows/test.yml)
# mahal-store
Store module for [mahal framework](https://github.com/ujjwalguptaofficial/mahal)
# Install
```
npm i @mahaljs/store
```
# Setup
```
import { Mahal } from "mahal";
import Main from "@/components/main.mahal";
import MahalStore from "@mahaljs/store";
import store from "@/store";
export const app = new Mahal(Main, '#app');
// add mahal store as plugin
app.extend.plugin(MahalStore, store);
app.create();
```
# Docs
https://mahaljs.com/docs/store/