Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zhoushoujian/pickapples-redux

pure redux demo
https://github.com/zhoushoujian/pickapples-redux

demo redux

Last synced: about 2 months ago
JSON representation

pure redux demo

Awesome Lists containing this project

README

        

# redux实现摘苹果的demo

## 此demo实现三大功能

1. 点击摘苹果,会更新当前苹果的数量和当前苹果的总重量
2. 点击改变重量,会更新当前苹果的总重量和当前苹果的总重量
3. 点击吃掉,会更新吃掉苹果的数量和重量,当前苹果数量和重量

## Build Setup

``` bash
# 下载或克隆下来,然后安装依赖
npm install

# 开发预览
npm run start

# 打包发布,生成的文件在build文件夹中
npm run build
npm install -g serve
serve -s build
http://localhost:5000

# lint
npm run eslint
```

## 效果图

![效果图](https://github.com/zhoushoujian/pickApples-redux/blob/master/view.png)

## 其他版本

```react```: https://github.com/zhoushoujian/pickApples-react

```vue```: https://github.com/zhoushoujian/pickApples-vue

```vuex```: https://github.com/zhoushoujian/pickApples-vuex