redux-1.0.0-rc.zip
资源文件列表:

redux-1.0.0-rc/
redux-1.0.0-rc/.babelrc 35B
redux-1.0.0-rc/.eslintignore 201B
redux-1.0.0-rc/.eslintrc 473B
redux-1.0.0-rc/.gitignore 55B
redux-1.0.0-rc/.npmignore 13B
redux-1.0.0-rc/.travis.yml 38B
redux-1.0.0-rc/CHANGELOG.md 13.24KB
redux-1.0.0-rc/CODE_OF_CONDUCT.md 1.39KB
redux-1.0.0-rc/LICENSE 1.05KB
redux-1.0.0-rc/README.md 18.2KB
redux-1.0.0-rc/ROADMAP.md 382B
redux-1.0.0-rc/docs/
redux-1.0.0-rc/docs/middleware.md 2.7KB
redux-1.0.0-rc/examples/
redux-1.0.0-rc/examples/counter/
redux-1.0.0-rc/examples/counter/.babelrc 17B
redux-1.0.0-rc/examples/counter/actions/
redux-1.0.0-rc/examples/counter/actions/CounterActions.js 559B
redux-1.0.0-rc/examples/counter/components/
redux-1.0.0-rc/examples/counter/components/Counter.js 674B
redux-1.0.0-rc/examples/counter/constants/
redux-1.0.0-rc/examples/counter/constants/ActionTypes.js 108B
redux-1.0.0-rc/examples/counter/containers/
redux-1.0.0-rc/examples/counter/containers/App.js 596B
redux-1.0.0-rc/examples/counter/containers/CounterApp.js 520B
redux-1.0.0-rc/examples/counter/index.html 169B
redux-1.0.0-rc/examples/counter/index.js 126B
redux-1.0.0-rc/examples/counter/package.json 900B
redux-1.0.0-rc/examples/counter/reducers/
redux-1.0.0-rc/examples/counter/reducers/counter.js 291B
redux-1.0.0-rc/examples/counter/reducers/index.js 48B
redux-1.0.0-rc/examples/counter/server.js 420B
redux-1.0.0-rc/examples/counter/webpack.config.js 819B
redux-1.0.0-rc/examples/todomvc/
redux-1.0.0-rc/examples/todomvc/.babelrc 17B
redux-1.0.0-rc/examples/todomvc/actions/
redux-1.0.0-rc/examples/todomvc/actions/TodoActions.js 561B
redux-1.0.0-rc/examples/todomvc/components/
redux-1.0.0-rc/examples/todomvc/components/Footer.js 1.78KB
redux-1.0.0-rc/examples/todomvc/components/Header.js 579B
redux-1.0.0-rc/examples/todomvc/components/MainSection.js 2.11KB
redux-1.0.0-rc/examples/todomvc/components/TodoItem.js 1.63KB
redux-1.0.0-rc/examples/todomvc/components/TodoTextInput.js 1.26KB
redux-1.0.0-rc/examples/todomvc/constants/
redux-1.0.0-rc/examples/todomvc/constants/ActionTypes.js 234B
redux-1.0.0-rc/examples/todomvc/constants/TodoFilters.js 124B
redux-1.0.0-rc/examples/todomvc/containers/
redux-1.0.0-rc/examples/todomvc/containers/App.js 453B
redux-1.0.0-rc/examples/todomvc/containers/TodoApp.js 725B
redux-1.0.0-rc/examples/todomvc/index.html 177B
redux-1.0.0-rc/examples/todomvc/index.js 162B
redux-1.0.0-rc/examples/todomvc/package.json 1000B
redux-1.0.0-rc/examples/todomvc/reducers/
redux-1.0.0-rc/examples/todomvc/reducers/index.js 44B
redux-1.0.0-rc/examples/todomvc/reducers/todos.js 1.04KB
redux-1.0.0-rc/examples/todomvc/server.js 420B
redux-1.0.0-rc/examples/todomvc/webpack.config.js 909B
redux-1.0.0-rc/package.json 1.42KB
redux-1.0.0-rc/scripts/
redux-1.0.0-rc/scripts/browser 172B
redux-1.0.0-rc/scripts/build 59B
redux-1.0.0-rc/scripts/clean 34B
redux-1.0.0-rc/scripts/lint 46B
redux-1.0.0-rc/scripts/prepublish 83B
redux-1.0.0-rc/scripts/test 82B
redux-1.0.0-rc/scripts/test-cov 88B
redux-1.0.0-rc/scripts/test-watch 90B
redux-1.0.0-rc/src/
redux-1.0.0-rc/src/Store.js 1.33KB
redux-1.0.0-rc/src/createStore.js 337B
redux-1.0.0-rc/src/index.js 451B
redux-1.0.0-rc/src/utils/
redux-1.0.0-rc/src/utils/applyMiddleware.js 835B
redux-1.0.0-rc/src/utils/bindActionCreators.js 225B
redux-1.0.0-rc/src/utils/combineReducers.js 1.9KB
redux-1.0.0-rc/src/utils/compose.js 229B
redux-1.0.0-rc/src/utils/composeMiddleware.js 284B
redux-1.0.0-rc/src/utils/isPlainObject.js 146B
redux-1.0.0-rc/src/utils/mapValues.js 165B
redux-1.0.0-rc/src/utils/pick.js 183B
redux-1.0.0-rc/test/
redux-1.0.0-rc/test/createStore.spec.js 6.05KB
redux-1.0.0-rc/test/helpers/
redux-1.0.0-rc/test/helpers/actionCreators.js 417B
redux-1.0.0-rc/test/helpers/actionTypes.js 36B
redux-1.0.0-rc/test/helpers/middleware.js 167B
redux-1.0.0-rc/test/helpers/reducers.js 572B
redux-1.0.0-rc/test/utils/
redux-1.0.0-rc/test/utils/applyMiddleware.spec.js 2.11KB
redux-1.0.0-rc/test/utils/bindActionCreators.spec.js 795B
redux-1.0.0-rc/test/utils/combineReducers.spec.js 2.91KB
redux-1.0.0-rc/test/utils/compose.spec.js 523B
redux-1.0.0-rc/test/utils/composeMiddleware.spec.js 678B
redux-1.0.0-rc/test/utils/isPlainObject.spec.js 535B
redux-1.0.0-rc/test/utils/mapValues.spec.js 331B
redux-1.0.0-rc/test/utils/pick.spec.js 322B
redux-1.0.0-rc/webpack.config.js 676B
资源介绍:
一个可预测的全局状态管理的 JS 库 A JS library for predictable global state management**Its [surface area](http://www.youtube.com/watch?v=4anAwXYqLG8) is minimal so you can try it in production and report any issues.** **You can track the [new docs](https://github.com/gaearon/redux/pull/140) and the [1.0 API and terminology changes](https://github.com/gaearon/redux/pull/195).** # Table of Contents - [Why another Flux framework?](#why-another-flux-framework) - [Philosophy & Design Goals](#philosophy--design-goals) - [The Talk](#the-talk) - [Demo](#demo) - [Examples](#examples) - [Simple Examples](#simple-examples) - [ES5 Examples](#es5-examples) - [Async and Universal Examples with Routing](#async-and-universal-examples-with-routing) - [What does it look like?](#what-does-it-look-like) - [Actions](#actions) - [Stores](#stores) - [Components](#components) - [Dumb Components](#dumb-components) - [Smart Components](#smart-components) - [Decorators](#decorators) - [React Native](#react-native) - [Initializing Redux](#initializing-redux) - [Running the same code on client and server](#running-the-same-code-on-client-and-server) - [Additional customization](#additional-customization) - [FAQ](#faq) - [How does hot reloading work?](#how-does-hot-reloading-work) - [Can I use this in production?](#can-i-use-this-in-production) - [How do I do async?](#how-do-i-do-async) - [But there are switch statements!](#but-there-are-switch-statements) - [What about `waitFor`?](#what-about-waitfor) - [My views aren't updating!](#my-views-arent-updating) - [How do Stores, Actions and Components interact?](#how-do-stores-actions-and-components-interact) - [Discussion](#discussion) - [Inspiration and Thanks](#inspiration-and-thanks) ## Why another Flux framework? Read **[The Evolution of Flux Frameworks](https://medium.com/@dan_abramov/the-evolution-of-flux-frameworks-6c16ad26bb31)** for some context. ### Philosophy & Design Goals * You shouldn't need a book on functional programming to use Redux. * Everything (Stores, Action Creators, configuration) is hot reloadable. * Preserves the benefits of Flux, but adds other nice properties thanks to its functional nature. * Prevents some of the anti-patterns common in Flux code. * Works great in [universal (aka “isomorphic”)](https://medium.com/@mjackson/universal-javascript-4761051b7ae9) apps because it doesn't use singletons and the data can be rehydrated. * Doesn't care how you store your data: you may use JS objects, arrays, ImmutableJS, etc. * Under the hood, it keeps all your data in a tree, but you don't need to think about it. * Lets you efficiently subscribe to finer-grained updates than individual Stores. * Provides hooks for powerful devtools (e.g. time travel, record/replay) to be implementable without user buy-in. * Provides extension points so it's easy to [support promises](https://github.com/gaearon/redux/issues/99#issuecomment-112212639) or [generate constants](https://gist.github.com/skevy/8a4ffc3cfdaf5fd68739) outside the core. * No wrapper calls in your stores and actions. Your stuff is your stuff. * It's super easy to test things in isolation without mocks. * You can use “flat” Stores, or [compose and reuse Stores](https://gist.github.com/gaearon/d77ca812015c0356654f) just like you compose Components. * The API surface area is minimal. * Have I mentioned hot reloading yet? ## The Talk Redux was demoed together with **[React Hot Loader](https://github.com/gaearon/react-hot-loader)** at React Europe. Watch **[Dan Abramov's talk on Hot Reloading with Time Travel](https://www.youtube.com/watch?v=xsSnOQynTHs).** ## Demo

Clicked: {counter} times {' '} {' '}
); } } ``