Skip to content

Commit 430dd5b

Browse files
authored
Merge pull request #43 from LeoEatle/master
修复链接
2 parents 53babc5 + 013d450 commit 430dd5b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

02_about-state-and-meet-redux.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// 于是 Redux 登场。
1111

12-
// Redux (https://github.com/rackt/redux) 是一个“可预测化状态的 JavaScript 容器”。
12+
// Redux (https://github.com/reactjs/redux) 是一个“可预测化状态的 JavaScript 容器”。
1313

1414
// 我们先回顾上述提出的问题并用 Redux 的词汇表给出以下解答(部分词汇也来源于 Flux):
1515

10_state-subscriber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ store_0.dispatch(addItemActionCreator({ id: 1234, description: 'anything' }))
8080
// Redux 是一个“为 Javascript 应用而生的可预测的状态容器”,
8181
// 你有很多方式去使用它,而 React 应用只不过是其中一个。
8282

83-
// 从这个角度看,如果没有 react-redux (https://github.com/rackt/react-redux),我们将失去很多。
83+
// 从这个角度看,如果没有 react-redux (https://github.com/reactjs/react-redux),我们将失去很多。
8484
// 在 Redux 1.0.0 之前它是包含在 Redux 中的,这个库节省了我们很多时间,
8585
// 它包含了在 React 中使用 Redux 时所有的绑定。
8686

11_src/src/create-store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// 尽管这样,但还是有一点要注意: 我们这里不使用之前用过的 thunk middleware。
66
// 替而代之的是 promise middleware,它允许我们处理异步的 action 创建函数,
77
// 然后漂亮的实时处理UI更新(也可以做一些乐观的更新)。
8-
// 这个中间件在 https://github.com/rackt/redux/issues/99有讨论,
8+
// 这个中间件在 https://github.com/reactjs/redux/issues/99有讨论,
99
// 在 react-redux-universal-example: https://github.com/erikras/react-redux-universal-hot-example中有非常好的使用案例,
1010
// 我强烈推荐你去看一看(之后不是现在;))。
1111

11_src/src/home.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// Connect "HOC" 主要被设计用于解决无论简单和困难的使用场景。
3030
// 在现有的例子中, 我们不会使用 Connect 最复杂的形式,
3131
// 但是你可以在完整的 API 文档中找到有关的全部信息:
32-
// https://github.com/rackt/react-redux/blob/v4.0.0/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
32+
// https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
3333

3434
// 以下是完整的 Connect 特征:
3535
// connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])
@@ -66,7 +66,7 @@ class Home extends React.Component {
6666
// 我们在这里会使用一个 Connect 提供的分发函数,
6767
// 也有很多其他的调用被绑定到分发器的 actionCreator 的方式,
6868
// 这种方式提供了第二个 Connect 的参数:
69-
// https://github.com/rackt/react-redux/blob/v4.0.0/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
69+
// https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
7070
// 被传到 actionCreators.getTime 的 delay 值是为了在我们能得到当前时间之前模拟异步的工作,
7171
// 试着修改这个值来正确影响我们的 UI
7272
this.props.dispatch(actionCreators.getTime(delay))
@@ -113,7 +113,7 @@ const mapStateToProps = (state/*, props*/) => {
113113
time: state._time.time,
114114
// 像 (reduxState: state) 这样提供整个 state 是一种不好的实现,
115115
// 我们在这里这样写是为了让大家能看到我们页面字符串化的结果。更多信息请访问以下链接:
116-
// https://github.com/rackt/react-redux/blob/v4.0.0/docs/api.md#inject-dispatch-and-every-field-in-the-global-state
116+
// https://github.com/reactjs/react-redux/blob/master/docs/api.md#inject-dispatch-and-every-field-in-the-global-state
117117
reduxState: state,
118118
}
119119
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ redux-tutorial
44
> 本文档正在翻译中,欢迎认领 [Issue](https://github.com/react-guide/redux-tutorial-cn/issues),和我们一起完善。
55
> 英文原版:https://github.com/happypoulp/redux-tutorial/
66
7-
这是一个很简短的教程,可以让你领略 Flux 和 [Redux](https://github.com/rackt/redux) 思想的精髓。
7+
这是一个很简短的教程,可以让你领略 Flux 和 [Redux](https://github.com/reactjs/redux) 思想的精髓。
88

99
当你初次接触 Redux 时,[Redux 官方文档](https://github.com/camsong/redux-in-chinese)极其详尽,是你的首选。本教程不同点是,通过介绍 Redux 使用来向你展示 Flux 概念。如果你想了解更多细节,请参谋 Redux 官方文档。
1010

0 commit comments

Comments
 (0)