diff --git a/content/docs/implementation-notes.md b/content/docs/implementation-notes.md index b345f7d5d..147ef0b22 100644 --- a/content/docs/implementation-notes.md +++ b/content/docs/implementation-notes.md @@ -1,6 +1,6 @@ --- id: implementation-notes -title: Implementation Notes +title: Tətbiq Qeydləri layout: contributing permalink: docs/implementation-notes.html prev: codebase-overview.html @@ -9,93 +9,93 @@ redirect_from: - "contributing/implementation-notes.html" --- -This section is a collection of implementation notes for the [stack reconciler](/docs/codebase-overview.html#stack-reconciler). +Bu bölmə, [stack rekonsilyatoru](/docs/codebase-overview.html#stack-reconciler) haqqında tətbiq qeydlərinin yığımıdır. -It is very technical and assumes a strong understanding of React public API as well as how it's divided into core, renderers, and the reconciler. If you're not very familiar with the React codebase, read [the codebase overview](/docs/codebase-overview.html) first. +Bu səhifə çox texnikidir və React-in açıq API-ı və React-in necə core, render edici qurğular və rekonsilyatora ayrıldığı haqqında anlayışınızın olduğunu ehtimal edir. Əgər React kodu ilə tanışlığınız yoxdursa, ilk öncə [Kodun İcmalı](/docs/codebase-overview.html) bölməsini oxuyun. -It also assumes an understanding of the [differences between React components, their instances, and elements](/blog/2015/12/18/react-components-elements-and-instances.html). +Bu səhifədə [React komponentləri, instansiyaları və elementləri](/blog/2015/12/18/react-components-elements-and-instances.html) arasında olan fərqlərdən xəbərinizin olduğu ehtimal edilir. -The stack reconciler was used in React 15 and earlier. It is located at [src/renderers/shared/stack/reconciler](https://github.com/facebook/react/tree/15-stable/src/renderers/shared/stack/reconciler). +Stack rekonsilyatoru React 15 və əvvəli buraxılışlarında işlədilirdi. Bu rekonsilyatorun kodu [src/renderers/shared/stack/reconciler](https://github.com/facebook/react/tree/15-stable/src/renderers/shared/stack/reconciler) direktoriyasında saxlanılır. -### Video: Building React from Scratch {#video-building-react-from-scratch} +### Video: React-in Sıfırdan Yazılması {#video-building-react-from-scratch} -[Paul O'Shannessy](https://twitter.com/zpao) gave a talk about [building React from scratch](https://www.youtube.com/watch?v=_MAD4Oly9yg) that largely inspired this document. +[Paul O'Şannesinin](https://twitter.com/zpao) [React-in sıfırdan yazılması haqqında danışığı](https://www.youtube.com/watch?v=_MAD4Oly9yg) bizim bu sənədi yazmamıza ilham verdi. -Both this document and his talk are simplifications of the real codebase so you might get a better understanding by getting familiar with both of them. +Bu sənəddə və göstərilən danışıqda olan detallar real kodun sadələşmiş formasıdır. Bunun səbəbi sizin bu konsepsiyaları daha yaxşı başa düşməniz üçündür. -### Overview {#overview} +### İcmal {#overview} -The reconciler itself doesn't have a public API. [Renderers](/docs/codebase-overview.html#renderers) like React DOM and React Native use it to efficiently update the user interface according to the React components written by the user. +Rekonsilyatorun açıq API-ı yoxdur. React DOM və React Native kimi [Render edici qurğular](/docs/codebase-overview.html#renderers) rekonsilyatordan istifadə edərək proqramçılar tərəfindən yazılan React komponentləri əsasında istifadəçi intereysini effektiv şəkildə yeniləyirlər. -### Mounting as a Recursive Process {#mounting-as-a-recursive-process} +### Rekursiv Proses şəklində Mount Edilmə {#mounting-as-a-recursive-process} -Let's consider the first time you mount a component: +Gəlin komponentin ilk dəfə mount edilməsinə baxaq: ```js ReactDOM.render(, rootEl); ``` -React DOM will pass `` along to the reconciler. Remember that `` is a React element, that is, a description of *what* to render. You can think about it as a plain object: +React DOM, `` elementini rekonsilyatora göndərir. ``-in React elementi (yəni, *nəyin* render ediləcəyinin təsviri) olduğunu yaddan çıxarmayın. Siz, bunun sadə obyekt olduğunu fikirləşə bilərsiniz: ```js console.log(); // { type: App, props: {} } ``` -The reconciler will check if `App` is a class or a function. +Rekonsilyator `App`-in sinif və ya funksiya olduğunu yoxlayır. -If `App` is a function, the reconciler will call `App(props)` to get the rendered element. +Əgər `App` funksiyadırsa, render olunan elementi almaq üçün rekonsilyator `App(props)` funksiyasını çağıracaq. -If `App` is a class, the reconciler will instantiate an `App` with `new App(props)`, call the `componentWillMount()` lifecycle method, and then will call the `render()` method to get the rendered element. +Əgər `App` sinifdirsə, rekonsilyator `App` obyektini `new App(props)` işlədərək yaradacaq, obyektin `componentWillMount()` lifecycle funksiyasını çağıracaq, və render olunan elementi almaq üçün obyektin `render()` funksiyasını çağıracaq. -Either way, the reconciler will learn the element `App` "rendered to". +Hər iki halda rekonsilyator `App`-in "render etdiyi" elementi tapacaq. -This process is recursive. `App` may render to a ``, `Greeting` may render to a `