# smart-taro-hooks

> Taro hooks liberary

Latest version **0.0.2** (published 2022-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install smart-taro-hooks
pnpm add smart-taro-hooks
yarn add smart-taro-hooks
bun add smart-taro-hooks
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-05-04 |
| First published | 2022-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 3 |
| Unpacked size | 228.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | ssdmtank |
| Maintainers | wangying2 |
| Keywords | taro hooks, react hooks |

## Links

- npm: https://www.npmjs.com/package/smart-taro-hooks
- Repository: https://github.com/ssdmtank/smart-taro
- Homepage: https://github.com/ssdmtank/smart-taro/
- Issues: https://github.com/ssdmtank/smart-taro/issues
- npm.io page: https://npm.io/package/smart-taro-hooks

## Dependencies (3)

- [lodash.uniq](https://npm.io/package/lodash.uniq.md) ^4.5.0
- [lodash-wechat](https://npm.io/package/lodash-wechat.md) ^1.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.14.6

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2022-05-04
- 1.0.0 — 2022-05-04
- 0.0.6 — 2022-05-04

## README

# Smart-Taro-hooks

## 简介

为`Taro`而设计的`Hooks Library`.

## 文档

[gh-page](https://sixstones.cn/smart-taro/)

## 特性

- 全面匹配`Taro API`.
- 结合`ahooks`扩展常用`hook`.
- 完整的类型定义文件
- 按需加载
- 更易用的方式

## 安装

```bash
$ yarn add smart-taro-hooks
```

## 使用

```jsx
import { useUpdate } from 'taro-hooks';
```

注: `smart-taro-hooks`的`js`代码默认支持基于`ES modules`的`tree shaking`. 但你依然可以显式的使用[`babel-plugin-import`](https://github.com/ant-design/babel-plugin-import)去设置按需加载, 设置方式如下:

```js
// babel.config.js
module.exports = {
  plugins: [
    [
      'import',
      {
        libraryName: 'taro-hooks',
        camel2DashComponentName: false,
      },
      'smart-taro-hooks',
    ],
  ],
};
```

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