# react-connect-abner

> > 在使用Connect的时候会出现大量复用的逻辑代码 在使用之前我们一般在获取数据都是这样使用的

Latest version **1.0.2** (published 2018-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-connect-abner
pnpm add react-connect-abner
yarn add react-connect-abner
bun add react-connect-abner
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-11-27 |
| First published | 2018-11-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | abner |
| Maintainers | forever_heart |

## Links

- npm: https://www.npmjs.com/package/react-connect-abner
- npm.io page: https://npm.io/package/react-connect-abner

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.6.3
- [react-redux](https://npm.io/package/react-redux.md) ^5.1.1

## Recent versions

- 1.0.2 (latest) — 2018-11-27
- 1.0.1 — 2018-11-27
- 1.0.0 — 2018-11-27

## README

### 二次封装react-redux中的connect
> 在使用Connect的时候会出现大量复用的逻辑代码 在使用之前我们一般在获取数据都是这样使用的

    ```
    const mapDispatchToProps =(dispatch)=>{
        return {
            getShowlist(page,link_url){
                dispatch(actionCreators.getRecipeList(page,link_url))
            }
        }
    }
    export default connect(null,mapDispatchToProps)(TabLink)
    ```
    
> 封装之后 一行代码就搞定 在导出时

    
    export default connect(null,mapDispatchToProps)(TabLink,['list'])
    

> 然后在取值的时候就可以直接在this.props.list上面取值就行

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