Skip to content

Commit 43d10dc

Browse files
committed
translate translate react compiler page
1 parent b67ca89 commit 43d10dc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/content/learn/react-compiler.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ function FriendList({ friends }) {
8989

9090
React Compiler, manuel memoizasyonun eşdeğerini otomatik olarak uygulayarak, bir uygulamanın yalnızca ilgili bölümlerinin durum değiştikçe yeniden oluşturulmasını sağlar; bu bazen “ince taneli reaktivite” olarak adlandırılır. Yukarıdaki örnekte React Compiler, `<FriendListCard />`ın geri dönüş değerinin `friends` değişse bile yeniden kullanılabileceğini belirler ve bu JSX'i yeniden oluşturmaktan _ve_ sayı değiştikçe `<MessageButton>`'ı yeniden oluşturmaktan kaçınabilir.
9191

92-
#### Expensive calculations also get memoized {/*expensive-calculations-also-get-memoized*/}
92+
#### Pahalı hesaplamalar da hafızaya alınır {/*expensive-calculations-also-get-memoized*/}
9393

94-
The compiler can also automatically memoize for expensive calculations used during rendering:
94+
Derleyici ayrıca render sırasında kullanılan pahalı hesaplamalar için otomatik olarak memoize edebilir:
9595

9696
```js
97-
// **Not** memoized by React Compiler, since this is not a component or hook
97+
// **Not** Bu bir bileşen veya hook olmadığı için React Compiler tarafından memoized
9898
function expensivelyProcessAReallyLargeArrayOfObjects() { /* ... */ }
9999

100-
// Memoized by React Compiler since this is a component
100+
// Bu bir bileşen olduğu için React Compiler tarafından not edilir
101101
function TableContainer({ items }) {
102-
// This function call would be memoized:
102+
// Bu fonksiyon çağrısı hafızaya alınacaktır:
103103
const data = expensivelyProcessAReallyLargeArrayOfObjects(items);
104104
// ...
105105
}

0 commit comments

Comments
 (0)