wrap-store
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

wrap-store

用于内部 mobx 状态管理使用

安装

npm install wrap-store

使用

/**
 * 外装列表
 * @param store {DressListStore} 逻辑
 * @param className {string} 样式
 */
const DressList = ({ store, className }) => {
  return (
    <div className={cx(className, styles.root)}>
      {store.$items.map((item, index) => {
        return <DressItem className={styles.item} store={item} key={index} />;
      })}
    </div>
  );
};

export default wrapStore(DressList, DressListStore);

0.0.1 (2021-10-26)

  • init commit

作者

Ailun She

Readme

Keywords

none

Package Sidebar

Install

npm i wrap-store

Weekly Downloads

1

Version

0.0.1

License

none

Unpacked Size

4.94 kB

Total Files

5

Last publish

Collaborators

  • jf3096