Skip to content

Commit c90db29

Browse files
committed
Rules of React page
1 parent c0d3cb3 commit c90db29

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/content/reference/rules/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Kod tabanınızın React Kurallarına uymasına yardımcı olmak için React'in
2626

2727
[Bileşenlerde ve Hook'larda Saflık](/reference/rules/components-and-hooks-must-be-pure) React'in uygulamanızı öngörülebilir, hata ayıklaması kolay ve React'in kodunuzu otomatik olarak optimize etmesini sağlayan temel bir kuralıdır.
2828

29-
* [Components must be idempotent](/reference/rules/components-and-hooks-must-be-pure#components-and-hooks-must-be-idempotent) React components are assumed to always return the same output with respect to their inputs – props, state, and context.
30-
* [Side effects must run outside of render](/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render) – Side effects should not run in render, as React can render components multiple times to create the best possible user experience.
31-
* [Props and state are immutable](/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable) – A component’s props and state are immutable snapshots with respect to a single render. Never mutate them directly.
29+
* [Bileşenler idempotent olmalıdır](/reference/rules/components-and-hooks-must-be-pure#components-and-hooks-must-be-idempotent) - React bileşenlerinin girdilerine (props, state ve context) göre her zaman aynı çıktıyı döndürdüğü varsayılır.
30+
* [Yan etkiler render dışında çalışmalıdır](/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render) - React, mümkün olan en iyi kullanıcı deneyimini oluşturmak için bileşenleri birden çok kez render edebileceğinden, yan etkiler render içinde çalışmamalıdır.
31+
* [Props and state are immutable](/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable) - Bir bileşenin prop'ları ve state'i tek bir render'a göre değişmez anlık görüntülerdir. Bunları asla doğrudan değiştirmeyin.
3232
* [Return values and arguments to Hooks are immutable](/reference/rules/components-and-hooks-must-be-pure#return-values-and-arguments-to-hooks-are-immutable) – Once values are passed to a Hook, you should not modify them. Like props in JSX, values become immutable when passed to a Hook.
3333
* [Values are immutable after being passed to JSX](/reference/rules/components-and-hooks-must-be-pure#values-are-immutable-after-being-passed-to-jsx) – Don’t mutate values after they’ve been used in JSX. Move the mutation before the JSX is created.
3434

0 commit comments

Comments
 (0)