diff --git a/02_about-state-and-meet-redux.js b/02_about-state-and-meet-redux.js index 8eb989e..05ad870 100644 --- a/02_about-state-and-meet-redux.js +++ b/02_about-state-and-meet-redux.js @@ -9,7 +9,7 @@ // 于是 Redux 登场。 -// Redux (https://github.com/rackt/redux) 是一个“可预测化状态的 JavaScript 容器”。 +// Redux (https://github.com/reactjs/redux) 是一个“可预测化状态的 JavaScript 容器”。 // 我们先回顾上述提出的问题并用 Redux 的词汇表给出以下解答(部分词汇也来源于 Flux): diff --git a/10_state-subscriber.js b/10_state-subscriber.js index 69d2b93..5d4a749 100644 --- a/10_state-subscriber.js +++ b/10_state-subscriber.js @@ -80,7 +80,7 @@ store_0.dispatch(addItemActionCreator({ id: 1234, description: 'anything' })) // Redux 是一个“为 Javascript 应用而生的可预测的状态容器”, // 你有很多方式去使用它,而 React 应用只不过是其中一个。 -// 从这个角度看,如果没有 react-redux (https://github.com/rackt/react-redux),我们将失去很多。 +// 从这个角度看,如果没有 react-redux (https://github.com/reactjs/react-redux),我们将失去很多。 // 在 Redux 1.0.0 之前它是包含在 Redux 中的,这个库节省了我们很多时间, // 它包含了在 React 中使用 Redux 时所有的绑定。 diff --git a/11_src/src/create-store.js b/11_src/src/create-store.js index 0ac526b..f265d0f 100644 --- a/11_src/src/create-store.js +++ b/11_src/src/create-store.js @@ -5,7 +5,7 @@ // 尽管这样,但还是有一点要注意: 我们这里不使用之前用过的 thunk middleware。 // 替而代之的是 promise middleware,它允许我们处理异步的 action 创建函数, // 然后漂亮的实时处理UI更新(也可以做一些乐观的更新)。 -// 这个中间件在 https://github.com/rackt/redux/issues/99有讨论, +// 这个中间件在 https://github.com/reactjs/redux/issues/99有讨论, // 在 react-redux-universal-example: https://github.com/erikras/react-redux-universal-hot-example中有非常好的使用案例, // 我强烈推荐你去看一看(之后不是现在;))。 diff --git a/11_src/src/home.jsx b/11_src/src/home.jsx index 8798bdc..baf4578 100644 --- a/11_src/src/home.jsx +++ b/11_src/src/home.jsx @@ -29,7 +29,7 @@ // Connect "HOC" 主要被设计用于解决无论简单和困难的使用场景。 // 在现有的例子中, 我们不会使用 Connect 最复杂的形式, // 但是你可以在完整的 API 文档中找到有关的全部信息: -// https://github.com/rackt/react-redux/blob/v4.0.0/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options +// https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options // 以下是完整的 Connect 特征: // connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options]) @@ -66,7 +66,7 @@ class Home extends React.Component { // 我们在这里会使用一个 Connect 提供的分发函数, // 也有很多其他的调用被绑定到分发器的 actionCreator 的方式, // 这种方式提供了第二个 Connect 的参数: - // https://github.com/rackt/react-redux/blob/v4.0.0/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options + // https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options // 被传到 actionCreators.getTime 的 delay 值是为了在我们能得到当前时间之前模拟异步的工作, // 试着修改这个值来正确影响我们的 UI this.props.dispatch(actionCreators.getTime(delay)) @@ -113,7 +113,7 @@ const mapStateToProps = (state/*, props*/) => { time: state._time.time, // 像 (reduxState: state) 这样提供整个 state 是一种不好的实现, // 我们在这里这样写是为了让大家能看到我们页面字符串化的结果。更多信息请访问以下链接: - // https://github.com/rackt/react-redux/blob/v4.0.0/docs/api.md#inject-dispatch-and-every-field-in-the-global-state + // https://github.com/reactjs/react-redux/blob/master/docs/api.md#inject-dispatch-and-every-field-in-the-global-state reduxState: state, } } diff --git a/README.md b/README.md index 471d44d..b12fd11 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ redux-tutorial > 本文档正在翻译中,欢迎认领 [Issue](https://github.com/react-guide/redux-tutorial-cn/issues),和我们一起完善。 > 英文原版:https://github.com/happypoulp/redux-tutorial/ -这是一个很简短的教程,可以让你领略 Flux 和 [Redux](https://github.com/rackt/redux) 思想的精髓。 +这是一个很简短的教程,可以让你领略 Flux 和 [Redux](https://github.com/reactjs/redux) 思想的精髓。 当你初次接触 Redux 时,[Redux 官方文档](https://github.com/camsong/redux-in-chinese)极其详尽,是你的首选。本教程不同点是,通过介绍 Redux 使用来向你展示 Flux 概念。如果你想了解更多细节,请参谋 Redux 官方文档。