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

redux-1.0.0-alpha/
redux-1.0.0-alpha/.babelrc 35B
redux-1.0.0-alpha/.eslintignore 201B
redux-1.0.0-alpha/.eslintrc 473B
redux-1.0.0-alpha/.gitignore 80B
redux-1.0.0-alpha/.npmignore 13B
redux-1.0.0-alpha/.travis.yml 38B
redux-1.0.0-alpha/CHANGELOG.md 13.24KB
redux-1.0.0-alpha/LICENSE 1.05KB
redux-1.0.0-alpha/README.md 17.54KB
redux-1.0.0-alpha/ROADMAP.md 382B
redux-1.0.0-alpha/docs/
redux-1.0.0-alpha/docs/middleware.md 2.77KB
redux-1.0.0-alpha/examples/
redux-1.0.0-alpha/examples/counter/
redux-1.0.0-alpha/examples/counter/.babelrc 17B
redux-1.0.0-alpha/examples/counter/actions/
redux-1.0.0-alpha/examples/counter/actions/CounterActions.js 559B
redux-1.0.0-alpha/examples/counter/components/
redux-1.0.0-alpha/examples/counter/components/Counter.js 645B
redux-1.0.0-alpha/examples/counter/constants/
redux-1.0.0-alpha/examples/counter/constants/ActionTypes.js 108B
redux-1.0.0-alpha/examples/counter/containers/
redux-1.0.0-alpha/examples/counter/containers/App.js 363B
redux-1.0.0-alpha/examples/counter/containers/CounterApp.js 487B
redux-1.0.0-alpha/examples/counter/index.html 169B
redux-1.0.0-alpha/examples/counter/index.js 126B
redux-1.0.0-alpha/examples/counter/package.json 833B
redux-1.0.0-alpha/examples/counter/server.js 420B
redux-1.0.0-alpha/examples/counter/stores/
redux-1.0.0-alpha/examples/counter/stores/counter.js 291B
redux-1.0.0-alpha/examples/counter/stores/index.js 48B
redux-1.0.0-alpha/examples/counter/webpack.config.js 607B
redux-1.0.0-alpha/examples/todomvc/
redux-1.0.0-alpha/examples/todomvc/.babelrc 17B
redux-1.0.0-alpha/examples/todomvc/actions/
redux-1.0.0-alpha/examples/todomvc/actions/TodoActions.js 561B
redux-1.0.0-alpha/examples/todomvc/components/
redux-1.0.0-alpha/examples/todomvc/components/Footer.js 1.75KB
redux-1.0.0-alpha/examples/todomvc/components/Header.js 550B
redux-1.0.0-alpha/examples/todomvc/components/MainSection.js 2.11KB
redux-1.0.0-alpha/examples/todomvc/components/TodoItem.js 1.64KB
redux-1.0.0-alpha/examples/todomvc/components/TodoTextInput.js 1.26KB
redux-1.0.0-alpha/examples/todomvc/constants/
redux-1.0.0-alpha/examples/todomvc/constants/ActionTypes.js 234B
redux-1.0.0-alpha/examples/todomvc/constants/TodoFilters.js 124B
redux-1.0.0-alpha/examples/todomvc/containers/
redux-1.0.0-alpha/examples/todomvc/containers/App.js 354B
redux-1.0.0-alpha/examples/todomvc/containers/TodoApp.js 692B
redux-1.0.0-alpha/examples/todomvc/index.html 177B
redux-1.0.0-alpha/examples/todomvc/index.js 162B
redux-1.0.0-alpha/examples/todomvc/package.json 962B
redux-1.0.0-alpha/examples/todomvc/server.js 420B
redux-1.0.0-alpha/examples/todomvc/stores/
redux-1.0.0-alpha/examples/todomvc/stores/index.js 44B
redux-1.0.0-alpha/examples/todomvc/stores/todos.js 1.04KB
redux-1.0.0-alpha/examples/todomvc/webpack.config.js 671B
redux-1.0.0-alpha/package.json 1.48KB
redux-1.0.0-alpha/scripts/
redux-1.0.0-alpha/scripts/browser 293B
redux-1.0.0-alpha/scripts/build 140B
redux-1.0.0-alpha/scripts/clean 34B
redux-1.0.0-alpha/scripts/lint 46B
redux-1.0.0-alpha/scripts/prepublish 83B
redux-1.0.0-alpha/scripts/test 82B
redux-1.0.0-alpha/scripts/test-cov 97B
redux-1.0.0-alpha/scripts/test-watch 90B
redux-1.0.0-alpha/src/
redux-1.0.0-alpha/src/Redux.js 1.27KB
redux-1.0.0-alpha/src/components/
redux-1.0.0-alpha/src/components/createAll.js 594B
redux-1.0.0-alpha/src/components/createConnectDecorator.js 802B
redux-1.0.0-alpha/src/components/createConnector.js 2.2KB
redux-1.0.0-alpha/src/components/createProvideDecorator.js 581B
redux-1.0.0-alpha/src/components/createProvider.js 1010B
redux-1.0.0-alpha/src/createDispatcher.js 629B
redux-1.0.0-alpha/src/createRedux.js 321B
redux-1.0.0-alpha/src/entry-react-native.js 36B
redux-1.0.0-alpha/src/entry-react.js 29B
redux-1.0.0-alpha/src/index.js 392B
redux-1.0.0-alpha/src/middleware/
redux-1.0.0-alpha/src/middleware/thunk.js 228B
redux-1.0.0-alpha/src/react-native.js 158B
redux-1.0.0-alpha/src/react.js 151B
redux-1.0.0-alpha/src/umd-react.js 50B
redux-1.0.0-alpha/src/umd.js 25B
redux-1.0.0-alpha/src/utils/
redux-1.0.0-alpha/src/utils/bindActionCreators.js 225B
redux-1.0.0-alpha/src/utils/composeMiddleware.js 126B
redux-1.0.0-alpha/src/utils/composeStores.js 345B
redux-1.0.0-alpha/src/utils/createReduxShape.js 212B
redux-1.0.0-alpha/src/utils/getDisplayName.js 119B
redux-1.0.0-alpha/src/utils/identity.js 60B
redux-1.0.0-alpha/src/utils/isPlainObject.js 146B
redux-1.0.0-alpha/src/utils/mapValues.js 165B
redux-1.0.0-alpha/src/utils/pick.js 183B
redux-1.0.0-alpha/src/utils/shallowEqual.js 496B
redux-1.0.0-alpha/src/utils/shallowEqualScalar.js 757B
redux-1.0.0-alpha/test/
redux-1.0.0-alpha/test/_helpers.js 741B
redux-1.0.0-alpha/test/components/
redux-1.0.0-alpha/test/components/Connector.spec.js 6.54KB
redux-1.0.0-alpha/test/components/Provider.spec.js 1.8KB
redux-1.0.0-alpha/test/components/connect.spec.js 1.93KB
redux-1.0.0-alpha/test/components/jsdomReact.js 194B
redux-1.0.0-alpha/test/components/provide.spec.js 1.73KB
redux-1.0.0-alpha/test/composeMiddleware.spec.js 651B
redux-1.0.0-alpha/test/composeStores.spec.js 1019B
redux-1.0.0-alpha/test/createDispatcher.spec.js 1.39KB
redux-1.0.0-alpha/test/createRedux.spec.js 1.98KB
redux-1.0.0-alpha/test/getDisplayName.spec.js 410B
redux-1.0.0-alpha/test/utils/
redux-1.0.0-alpha/test/utils/bindActionCreators.spec.js 1023B
redux-1.0.0-alpha/test/utils/identity.spec.js 294B
redux-1.0.0-alpha/test/utils/isPlainObject.spec.js 591B
redux-1.0.0-alpha/test/utils/mapValues.spec.js 349B
redux-1.0.0-alpha/test/utils/pick.spec.js 332B
redux-1.0.0-alpha/test/utils/shallowEquality.spec.js 3.18KB
redux-1.0.0-alpha/webpack.config.js 859B
资源介绍:
一个可预测的全局状态管理的 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.** # Table of Contents - [Why another Flux framework?](#why-another-flux-framework) - [Philosophy & Design Goals](#philosophy--design-goals) - [Demo](#demo) - [Examples](#examples) - [Simple Examples](#simple-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? ## Demo

Clicked: {counter} times {' '} {' '}
); } } ``` #### Smart Components ```js // The smart component may observe stores using `