README
YY Stores
YYStores 可能会出现较大改动并且不保证功能完整可用,请谨慎使用。
安装
在项目中安装 YYStores
npm install @ysyp/stores
使用
在代码中 import
需要的组件并按照文档说明使用
import {
// 单类 Store
GoodStore,
/** 项目使用 <RootStoreProvider store={new RootStore()} > {props.children} </RootStoreProvider> */
RootStore,
RootStoreProvider,
/** 代码使用 const { goodStore } = useRootStore(); */
useRootStore,
} from '@ysyp/stores';
开发交流
开发计划
License
MIT