Skip to content

Translates "Virtual DOM and Internals" page #97

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 2 commits into from
Mar 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions content/docs/faq-internals.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
---
id: faq-internals
title: Virtual DOM and Internals
title: Virtual DOM ve İç Dinamikler
permalink: docs/faq-internals.html
layout: docs
category: FAQ
---

### What is the Virtual DOM? {#what-is-the-virtual-dom}
### Virtual DOM nedir? {#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).
Virtual DOM (VDOM), bir UI'ın ideal veya "sanal" bir temsilinin bellekte tutulduğu ve ReactDOM gibi bir kütüphane tarafından "gerçek" DOM ​​ile senkronize edildiği bir programlama konseptidir. Bu sürece [uyumlaştırma](/docs/reconciliation.html) denir.

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.
Bu yaklaşım, bildirimsel React API'sini etkinleştirir: React'e UI'ın hangi state'te olmasını istediğinizi söylersiniz ve DOM'ın bu durumla eşleştiğinden emin olur. Bu, uygulamanızı oluşturmak için kullanmak zorunda kalacağınız özellik manipülasyonu, olay yönetimi ve manuel DOM güncellemesini özetler.

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.
"Virtual DOM" belirli bir teknolojiden daha ziyade bir kalıp olduğundan, insanlar bazen farklı şeyler ifade ettiğini söylüyor. React dünyasında, "virtual DOM" terimi genellikle [React elemanları](/docs/rendering-elements.html) ile ilişkilendirilir, çünkü bunlar kullanıcı arayüzünü temsil eden nesnelerdir. Bununla birlikte, React, bileşen ağacı hakkında ek bilgi tutmak için "fibers" adı verilen dahili nesneleri de kullanır. Ayrıca React'teki "virtual DOM" uygulamasının bir parçası olarak da düşünülebilirler.

### Is the Shadow DOM the same as the Virtual DOM? {#is-the-shadow-dom-the-same-as-the-virtual-dom}
### Shadow DOM, Virtual DOM ile aynı mı? {#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.
Hayır, farklılar. Shadow DOM, öncelikle web bileşenlerindeki değişkenleri ve CSS'i kapsamak için tasarlanmış bir tarayıcı teknolojisidir. Virtual DOM, JavaScript’teki kütüphaneler tarafından tarayıcı API’ları üzerine uygulanan bir kavramdır.

### What is "React Fiber"? {#what-is-react-fiber}
### "React Fiber" nedir? {#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).

Fiber, React 16'daki yeni uyumlaştırma motorudur. Ana hedefi, virtual DOM'ın artımlı render edilmesini sağlamaktır. [Devamını okuyun](https://github.com/acdlite/react-fiber-architecture).