Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zhoushoujian/pickapples-redux
- Owner: zhoushoujian
- License: mit
- Created: 2018-08-07T15:06:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T04:41:38.000Z (3 months ago)
- Last Synced: 2024-10-29T05:29:13.118Z (3 months ago)
- Topics: demo, redux
- Language: JavaScript
- Homepage: https://github.com/zhoushoujian/pickApples-redux
- Size: 205 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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