GithubHelp home page GithubHelp logo

redux-tutorial-cn's Introduction

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/happypoulp/redux-tutorial.git

进入目录

cd redux-tutorial

安装依赖

npm install

浏览教程

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

从第一个章节开始:简介

运行示例

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

npm run example 01_simple-action-creator.js

开始享受吧!

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

redux-tutorial-cn's People

Contributors

berlinchan avatar camsong avatar dorayx avatar ibufu avatar jovey-zheng avatar leoeatle avatar pandazki avatar qixiuss avatar shinux avatar wangdong avatar weixiaobo88 avatar zavven avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.