Skip to content

react-guide/redux-tutorial-cn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a55989e · Apr 25, 2019

History

90 Commits
Mar 23, 2019
Feb 18, 2016
Feb 18, 2016
Aug 11, 2016
Apr 3, 2016
Feb 17, 2017
Apr 3, 2016
Oct 10, 2016
Apr 3, 2016
Apr 3, 2016
Apr 3, 2016
Apr 3, 2016
Apr 3, 2016
Feb 17, 2017
Aug 31, 2016
Apr 1, 2016
Jul 28, 2017
Feb 18, 2016

Repository files navigation

redux-tutorial

本文档正在翻译中,欢迎认领 Issue,和我们一起完善。
英文原版:https://github.com/happypoulp/redux-tutorial/

这是一个很简短的教程,可以让你领略 Flux 和 Redux 思想的精髓。

当你初次接触 Redux 时,Redux 官方文档极其详尽,是你的首选。本教程不同点是,通过介绍 Redux 使用来向你展示 Flux 概念。如果你想了解更多细节,请参谋 Redux 官方文档。

准备

为了理解本项目中的示例代码,你需要了解一些 ES6,ES7(Object Spread)特性。同时本教程只针对 Redux 3.0.2 和 react-redux 4.0.0。

克隆项目

git clone https://github.com/react-guide/redux-tutorial-cn.git

进入目录

cd redux-tutorial-cn

安装依赖

npm install

浏览教程

本教程按照阅读的先后顺序,把内容分为多个 JavaScript 文件。

从第一个章节开始:简介

运行示例

既然是真实的 JS 文件,你可以直接运行这些示例,来验证结果符合预期:

npm run example 01_simple-action-creator.js

开始享受吧!

本文档翻译流程符合 ETC 翻译规范,欢迎你来一起完善