@nanopiniated/react
v0.0.1
Published
React integration for nanopiniated
Downloads
3
Maintainers
Readme
@nanopiniated/react
React integration for nanopiniated.
Getting started
Install package:
# npm
npm install @nanopiniated/react
# yarn
yarn add @nanopiniated/react
# pnpm
pnpm install @nanopiniated/react
Import:
// ESM
import { createUseStore } from "@nanopiniated/react";
// CommonJS
const { createUseStore } = require("@nanopiniated/react");
Usage
import { createStore } from "nanopiniated"
import { createUseStore } from "@nanopiniated/react"
export const store = createStore(...)
export const useAppStore = createUseStore(store.$store)
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run
pnpm build:all
- Test changes in
./playground
License
Made with ❤️ by Florian Lefebvre.
Published under MIT License.