0.0.1 • Published 8 months ago

@nanopiniated/react v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@nanopiniated/react

npm version npm downloads bundle

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.