-
Notifications
You must be signed in to change notification settings - Fork 88
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(zh-hant): introducing jsx #13
Conversation
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.
👍Looks great! Just add some suggestion. Please take a look.😳
|
||
Instead of artificially separating *technologies* by putting markup and logic in separate files, React [separates *concerns*](https://en.wikipedia.org/wiki/Separation_of_concerns) with loosely coupled units called "components" that contain both. We will come back to components in a [further section](/docs/components-and-props.html), but if you're not yet comfortable putting markup in JS, [this talk](https://www.youtube.com/watch?v=x7cQ3mrcKaY) might convince you otherwise. | ||
與其刻意的將*技術*拆開,把標籤語法跟邏輯拆放於不同檔案之中,React [將*焦點*分散](https://en.wikipedia.org/wiki/Separation_of_concerns)的方法是將其拆分為很多同時包含 UI 與邏輯的 component,而彼此之間很少互相依賴。我們會在[之後的章節](/docs/components-and-props.html)中回來探討 component 這個主題,但如果你還沒被說服接受將標籤語法寫在 JS 裡頭,[這個演講](https://www.youtube.com/watch?v=x7cQ3mrcKaY)或許會說服你。 |
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.
I'm not sure that should we keep the Italic style like 技術?
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.
should we use bold instead? The default typography settings are also making it looks very bad on Linux, as in italic characters would clash into its neighbours.
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.
Separation of concerns
usually be translated to 關注點分離
. (can't get any relevant result when searching 焦點分散
on Google)
Co-Authored-By: itszero <github@itsze.ro>
@itszero I spotted three small things. Once they're fixed, I will merge this in asap. |
Updated! |
Deploy preview for zh-hant-reactjs ready! Built with commit fe89605 |
Co-Authored-By: itszero <github@itsze.ro>
🤦♂️ tripple checked it is removed this time! |
Two small changes, then we're done! 💯 |
Co-Authored-By: itszero <github@itsze.ro>
This one is pretty hard because there're a lot of overloaded terms: React elements v.s. HTML elements etc. I try to stick to the glossary as to what to translate and what to keep in English.
Let me know if I missed anything or any feedbacks! 😄