Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cn): translate content/blog/2013-06-05-why-react.md into Chinese #179

Merged
merged 3 commits into from
Apr 8, 2019

Conversation

laobeijing0806
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Mar 25, 2019

Deploy preview for cn-reactjs ready!

Built with commit 03e7846

https://deploy-preview-179--cn-reactjs.netlify.com

@netlify
Copy link

netlify bot commented Mar 25, 2019

Deploy preview for zh-hans-reactjs ready!

Built with commit 03e7846

https://deploy-preview-179--zh-hans-reactjs.netlify.com

QC-L
QC-L previously approved these changes Mar 25, 2019
Copy link
Member

@QC-L QC-L left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work

@QC-L QC-L added the Pending Re-Review 已修改,待审校阶段 label Mar 25, 2019
@@ -1,88 +1,88 @@
---
title: Why did we build React?
title: 我们为什么要构建 React
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: 我们为什么要构建 React
title: 我们为什么要构建 React?

@QC-L QC-L mentioned this pull request Mar 28, 2019
@laobeijing0806
Copy link
Contributor Author

It looks like we need another reviewer to approve this pr

QC-L
QC-L previously approved these changes Apr 1, 2019
author: [petehunt]
---

There are a lot of JavaScript MVC frameworks out there. Why did we build React
and why would you want to use it?
现在有很多 JavaScript MVC 框架。我们为什么要构建 React,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和前半句有一点转折语气

Suggested change
现在有很多 JavaScript MVC 框架。我们为什么要构建 React,
现在有很多 JavaScript MVC 框架。我们为什么还要构建 React,

React is a library for building composable user interfaces. It encourages
the creation of reusable UI components which present data that changes over
time.
React 是一个用于构建可组合 UI 的库。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果原文是 UI 就直接用 UI,如果用了全称,就翻译出来意思

Suggested change
React 是一个用于构建可组合 UI 的库
React 是一个用于构建可组合用户界面的库

We've also created [JSX](/docs/jsx-in-depth.html), an optional syntax
extension, in case you prefer the readability of HTML to raw JavaScript.
我们也创造了 [JSX](/docs/jsx-in-depth.html),一种可选的语法扩展,
以便你更喜欢 HTML 对原生 JavaScript 的可读性。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer... to... 的意思是更喜欢。。。而不喜欢。。。
按照中文的语法习惯,这两行位置对调一下

Suggested change
以便你更喜欢 HTML 对原生 JavaScript 的可读性。
相比原生 JavaScript,如果你更喜欢 HTML 的高可读性,
我们创造了 [JSX](/docs/jsx-in-depth.html),一种可选的语法扩展。

在一个传统的 JavaScript 应用中,你需要观察数据发生了什么变化,
并且为了让 DOM 保持最新的状态还必须对它进行更改。
AngularJS 甚至通过指令和数据绑定的提供声明式接口,
还 [需要一个链接函数来手动更新 DOM 节点](https://code.angularjs.org/1.0.8/docs/guide/directive#reasonsbehindthecompilelinkseparation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[需要一个链接函数来手动更新 DOM 节点](https://code.angularjs.org/1.0.8/docs/guide/directive#reasonsbehindthecompilelinkseparation)
[需要一个链接函数来手动更新 DOM 节点](https://code.angularjs.org/1.0.8/docs/guide/directive#reasonsbehindthecompilelinkseparation)

We call this process **reconciliation**. Check out
[this jsFiddle](http://jsfiddle.net/2h6th4ju/) to see an example of
reconciliation in action.
我们把这个过程称为 **协调**。 查看
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
我们把这个过程称为 **协调**。 查看
我们把这个过程称为**协调**。 查看

(including IE8) and automatically use
[event delegation](http://davidwalsh.name/event-delegate).
- Facebook 有些动态的图表会渲染成 `<canvas>` 而不是 HTML。
- Instagram 是一个完全用 React 和 `Backbone.Router` 构建的 “单页” web 应用程序。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全角中文标点两侧不需要空格

Suggested change
- Instagram 是一个完全用 React 和 `Backbone.Router` 构建的 “单页” web 应用程序。
- Instagram 是一个完全用 React 和 `Backbone.Router` 构建的“单页”web 应用程序。

@QC-L
Copy link
Member

QC-L commented Apr 3, 2019

@laobeijing0806 修改下

@QC-L QC-L merged commit b6a9bc6 into reactjs:master Apr 8, 2019
OhIAmFine pushed a commit to OhIAmFine/zh-hans.reactjs.org that referenced this pull request May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending Re-Review 已修改,待审校阶段
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants