Sitelet https://github.com/react-guide/redux-tutorial-cn
Skip to content

About

Redux Tutorial 中文翻译

Resources

Stars

1.9k stars

Watchers

69 watching

Forks

Latest commit

 

History

90 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 翻译规范,欢迎你来一起完善

About

Redux Tutorial 中文翻译

Resources

Stars

1.9k stars

Watchers

69 watching

Forks

Releases

Packages

Used by

Contributors

Languages