-
Notifications
You must be signed in to change notification settings - Fork 391
Translate "Virtual DOM" #161
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a7a3937
Russian translate virtual dom
ivaneroshkin e96c744
Fixed changes in other files
ivaneroshkin e416e58
Apply suggestions from code review
lex111 ab7d9b9
Apply suggestions from code review
Heegiiny e20f278
Update title
ivaneroshkin 388cf21
Update content/docs/faq-internals.md
another-guy aa08fdb
Update content/docs/faq-internals.md
another-guy 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 hidden or 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,23 +1,23 @@ | ||
--- | ||
id: faq-internals | ||
title: Virtual DOM and Internals | ||
title: Виртуальный DOM | ||
permalink: docs/faq-internals.html | ||
layout: docs | ||
category: FAQ | ||
--- | ||
|
||
### What is the Virtual DOM? {#what-is-the-virtual-dom} | ||
### Что такое виртуальный DOM? {#what-is-the-virtual-dom} | ||
|
||
The virtual DOM (VDOM) is a programming concept where an ideal, or "virtual", representation of a UI is kept in memory and synced with the "real" DOM by a library such as ReactDOM. This process is called [reconciliation](/docs/reconciliation.html). | ||
Виртуальный DOM (VDOM) – это концепция программирования, в которой идеальное или “виртуальное” представление пользовательского интерфейса хранится в памяти и синхронизируется с “реальной” DOM библиотекой, такой как ReactDOM. Этот процесс называется [согласованием](/docs/reconciliation.html). | ||
ivaneroshkin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This approach enables the declarative API of React: You tell React what state you want the UI to be in, and it makes sure the DOM matches that state. This abstracts out the attribute manipulation, event handling, and manual DOM updating that you would otherwise have to use to build your app. | ||
Этот подход включает декларативный API React: вы указываете React, в каком состоянии должен находиться пользовательский интерфейс, и он проверяет, что DOM соответствует этому состоянию. Это абстрагирует манипуляции с атрибутами, обработку событий и ручное обновление DOM, которые, в противном случае, пришлось бы использовать для построения приложения. | ||
ivaneroshkin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Since "virtual DOM" is more of a pattern than a specific technology, people sometimes say it to mean different things. In React world, the term "virtual DOM" is usually associated with [React elements](/docs/rendering-elements.html) since they are the objects representing the user interface. React, however, also uses internal objects called "fibers" to hold additional information about the component tree. They may also be considered a part of "virtual DOM" implementation in React. | ||
Поскольку виртуальный DOM – это скорее шаблон, чем конкретная технология, люди иногда говорят, что это означает разные вещи. В мире React термин “виртуальный DOM” обычно ассоциируется с [рендерингом элементов](/docs/rendering-elements.html), поскольку они являются объектами, представляющими пользовательский интерфейс. Однако React также использует внутренние объекты, называемые “файберами”, для хранения дополнительной информации о дереве компонентов. Их также можно считать частью реализации “виртуального DOM” в React. | ||
ivaneroshkin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Is the Shadow DOM the same as the Virtual DOM? {#is-the-shadow-dom-the-same-as-the-virtual-dom} | ||
### Теневой DOM похож на виртуальный DOM? {#is-the-shadow-dom-the-same-as-the-virtual-dom} | ||
|
||
No, they are different. The Shadow DOM is a browser technology designed primarily for scoping variables and CSS in web components. The virtual DOM is a concept implemented by libraries in JavaScript on top of browser APIs. | ||
Нет, они совсем разные. Теневой DOM – это браузерная технология, предназначенная в основном для определения переменных и CSS в веб-компонентах. Виртуальный DOM – это концепция, реализованная библиотеками в JavaScript поверх API браузера. | ||
ivaneroshkin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### What is "React Fiber"? {#what-is-react-fiber} | ||
### Что такое «React Fiber»? {#what-is-react-fiber} | ||
|
||
Fiber is the new reconciliation engine in React 16. Its main goal is to enable incremental rendering of the virtual DOM. [Read more](https://github.com/acdlite/react-fiber-architecture). | ||
Файбер – новый механизм согласования в React 16, основная цель которого использовать постепенный рендеринг виртуального DOM. [Узнать больше](https://github.com/acdlite/react-fiber-architecture). | ||
ivaneroshkin marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.