# elegant-rc

> docs: http://rcdocs.zhoumeilei.cn

Latest version **2.1.1** (published 2023-10-04) · 0 weekly downloads

## Install

```sh
npm install elegant-rc
pnpm add elegant-rc
yarn add elegant-rc
bun add elegant-rc
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2023-10-04 |
| First published | 2022-11-06 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 630.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | hahazml |

## Links

- npm: https://www.npmjs.com/package/elegant-rc
- Repository: https://github.com/forget-forever/elegant-rc
- Homepage: https://github.com/forget-forever/elegant-rc#readme
- Issues: https://github.com/forget-forever/elegant-rc/issues
- npm.io page: https://npm.io/package/elegant-rc

## Dependencies (4)

- [date-fns](https://npm.io/package/date-fns.md) ^2.30.0
- [codemirror](https://npm.io/package/codemirror.md) 5.65.5
- [qnn-react-cron](https://npm.io/package/qnn-react-cron.md) >=0.8.6
- [react-day-picker](https://npm.io/package/react-day-picker.md) >=8.0.0

## Recent versions

- 2.1.1 (latest) — 2023-10-04
- 1.9.34 — 2023-10-04
- 1.9.33 — 2023-10-04
- 2.1.0 — 2023-09-11
- 1.9.32 — 2023-09-11
- 2.0.6 — 2023-06-09
- 2.0.5 — 2023-06-09
- 1.9.31 — 2023-06-09
- 2.0.4 — 2023-06-09
- 1.7.8 — 2022-12-18
- 1.7.7 — 2022-11-27
- 1.7.4 — 2022-11-06
- 1.7.3 — 2022-11-06

## README

# react 通用组件库项目

docs: http://rcdocs.zhoumeilei.cn

## description

对于 react 项目中可以做解藕的公共组件，特意创建的一个项目，可以将日常开发中觉得有复用价值的组件收集到这个项目中
通过在日常的开发中写过的小而美的代码能够进行一个统一的收集

## dev 开发

```bash
# 安装
yarn
# 启动项目，可以看自己写的demo
npm run start

```

## 目录结构

```bash
|--src
  |--encapsulation # 二次封装的组件
    |--componentDemo
      index.tsx # 组件入口
      index.md # 组件说明文档
      |--demos # 使用范例
    index.ts # 二次封装组件统一加入的入口，每加一个组件记得到这里面去加入口
  |--independent # 自开发组件
    |--componentDemo
      index.tsx # 组件入口
      index.md # 组件说明文档
      |--demos # 使用范例
    index.ts # 自开发组件统一加入的入口，每加一个组件记得到这里面去加入口
  |--hooks # hooks,放入一些有复用价值的hook
    |--hookDemo
      index.ts # hook的入口
      index.md # hook的文档说明
      |--demos # demo演示
    index.ts # hooks 的统一入口，加入一个hook之后记得在这里添加一下入口
  |--utils # 一些实用的方法，可以将一些好用的通用方法加入在这，方式与hook类似
  index.ts # 库的统一入口，
```

## 发布

```bash
npm run release
```

## 注意事项（attention）

- 加一个组件记得在 src/index.ts 中加入入口
- 出于一个规范化的考虑，对于 ts 编译不通过的情况都会不允许发布
- 对于依赖的添加，不要轻易的加 dependency，一般加 devDependency 和 peerDependency 就好了
- 对于新开发的东西建议可以在 src/index.ts 中加统一的导出
- 新加入的物料方法，hook，组件建议做到小而美

---
_Source: https://npm.io/package/elegant-rc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
