-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Fixed sentences that had awkward translation #6531
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
--- | ||
id: why-react-zh-CN | ||
title: 为什么使用 React? | ||
title: 为什么要使用 React? | ||
permalink: why-react-zh-CN.html | ||
next: displaying-data-zh-CN.html | ||
--- | ||
React 是一个 Facebook 和 Instagram 用来创建用户界面的 JavaScript 库。很多人选择将 React 认为是 **[MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)** 中的 **V**(视图)。 | ||
React 是一个已被 Facebook 和 Instagram 所采用的、用于创建用户界面的 JavaScript 库。很多人认为 React 是 **[MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)** 中的 **V**(视图)。 | ||
|
||
我们创造 React 是为了解决一个问题:**构建随着时间数据不断变化的大规模应用程序**。 | ||
我们创造 React 的目的是解决这样一个问题:**构建随着时间数据不断变化的大规模应用程序**。 | ||
|
||
### 简单 | ||
|
||
仅仅只要表达出你的应用程序在任一个时间点应该呈现的样子,然后当底层的数据变了,React 会自动处理所有用户界面的更新。 | ||
你仅仅只需要表达出你的应用程序在任一个时间点应该呈现的样子,当底层的数据变了时,React 会自动更新所有用户界面。 | ||
|
||
### 声明式 (Declarative) | ||
|
||
数据变化后,React 概念上与点击“刷新”按钮类似,但仅会更新变化的部分。 | ||
数据变化后,React 概念上与点击“刷新”按钮类似,但仅会更新应当变化的部分。 | ||
|
||
## 构建可组合的组件 | ||
|
||
React 都是关于构建可复用的组件。事实上,通过 React 你*唯一*要做的事情就是构建组件。得益于其良好的封装性,组件使代码复用、测试和关注分离(separation of concerns)更加简单。 | ||
用React 所构建的组件都是可复用的。事实上,在采用 React 时你*唯一*要做的事情就是构建组件。得益于其良好的封装性,组件使代码在复用、测试和关注分离(separation of concerns)等方面都更加简单。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. “使用” might be better than “采用”。There is a whitespace missing before the first "React". :) |
||
|
||
## 给它5分钟的时间 | ||
## 请给它5分钟的时间来证明自己 | ||
|
||
React挑战了很多传统的知识,第一眼看上去可能很多想法有点疯狂。当你阅读这篇指南,请[给它5分钟的时间](https://signalvnoise.com/posts/3124-give-it-five-minutes);那些疯狂的想法已经帮助 Facebook 和 Instagram 从里到外创建了上千的组件了。 | ||
因为React挑战了很多传统的知识,所以它的很多想法在第一眼看上去时可能显得有点疯狂。当你阅读这篇指南时,请[请给它5分钟的时间来证明自己](https://signalvnoise.com/posts/3124-give-it-five-minutes);要知道,那些疯狂的想法已经帮助 Facebook 和 Instagram 从里到外创建了上千的组件了。 | ||
|
||
## 了解更多 | ||
|
||
你可以从这篇[博客](/react/blog/2013/06/05/why-react.html)了解更多我们创造 React 的动机。 | ||
你可以从这篇[博客](/react/blog/2013/06/05/why-react.html)中了解到我们创造 React 的更多的动机。 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "仅需要表达出你的应用程序在任何时间应该如何呈现,当底层的数据变化时,React 会自动更新所有用户界面。"?