# @sialvsic/react-redux

> This repo aim to analyze react redux and DIY it.

Latest version **0.0.2** (published 2019-04-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @sialvsic/react-redux
pnpm add @sialvsic/react-redux
yarn add @sialvsic/react-redux
bun add @sialvsic/react-redux
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-04-16 |
| First published | 2019-04-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sialvsic |
| Maintainers | sialvsic |

## Links

- npm: https://www.npmjs.com/package/@sialvsic/react-redux
- Repository: https://github.com/sialvsic/react-redux-analyze
- Homepage: https://github.com/sialvsic/react-redux-analyze#readme
- Issues: https://github.com/sialvsic/react-redux-analyze/issues
- npm.io page: https://npm.io/package/@sialvsic/react-redux

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.8.6

## Recent versions

- 0.0.2 (latest) — 2019-04-16
- 0.0.1 — 2019-04-16

## README

# react-redux-analyze
This repo aim to analyze react-redux and DIY it. 

## React redux 核心组成
- Provider
- connect

```javascript
const rootElement = document.getElementById('root')
ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  rootElement
)
```

```javascript
const mapStateToProps = (state /*, ownProps*/) => {
  return {
    counter: state.counter
  }
}

const mapDispatchToProps = { increment, decrement, reset }

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(Counter)
```

## Teach Path

## How to publish to npm
```bash
npm publish --access public
```

```bash
npm unpublish @sialvsic/react-redux@0.0.1 -f
```

## How to publish in local with verdaccio
```bash
npm publish --registry http://localhost:4873
```

P.S could install from local by adding this line in the .npmrc file
```bash
registry=http://localhost:4873
```

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