@nanopiniated/react
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@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.

Package Sidebar

Install

npm i @nanopiniated/react

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

6.84 kB

Total Files

7

Last publish

Collaborators

  • florian-lefebvre