@@ -913,7 +915,7 @@ You can use the `onRecoverableError` root option to display error dialogs:
- My app
+ Benim uygulamam
@@ -1053,15 +1055,15 @@ function reportError({ title, error, componentStack, dismissable }) {
}
export function reportCaughtError({error, cause, componentStack}) {
- reportError({ title: "Caught Error", error, componentStack, dismissable: true});
+ reportError({ title: "Yakalanan Hata", error, componentStack, dismissable: true});
}
export function reportUncaughtError({error, cause, componentStack}) {
- reportError({ title: "Uncaught Error", error, componentStack, dismissable: false });
+ reportError({ title: "Yakalanmamış Hata", error, componentStack, dismissable: false });
}
export function reportRecoverableError({error, cause, componentStack}) {
- reportError({ title: "Recoverable Error", error, componentStack, dismissable: true });
+ reportError({ title: "Kurtarılabilir Hata", error, componentStack, dismissable: true });
}
```
@@ -1097,8 +1099,8 @@ export default function App() {
fallbackRender={fallbackRender}
>
{!errorThrown && }
- This component threw an error, but recovered during a second render.
- Since it recovered, no Error Boundary was shown, but onRecoverableError was used to show an error dialog.
+ Bu bileşen bir hata fırlattı, ancak ikinci bir render etme sırasında düzeldi.
+ Kurtarıldığı için Hata yakalayıcı gösterilmedi, ancak bir hata diyoloğu göstermek için onRecoverableError kullanıldı.
>
@@ -1108,8 +1110,8 @@ export default function App() {
function fallbackRender() {
return (
-
Error Boundary
-
Something went wrong.
+
Hata Yakalayıcı
+
Bir şeyler ters gitti.
);
}
@@ -1155,17 +1157,17 @@ Bunu yapana kadar hiçbir şey görüntülenmez.
---
-### I'm getting an error: "You passed a second argument to root.render" {/*im-getting-an-error-you-passed-a-second-argument-to-root-render*/}
+### Bir hata alıyorum: "root.render'a ikinci bir argüman geçtiniz" {/*im-getting-an-error-you-passed-a-second-argument-to-root-render*/}
-A common mistake is to pass the options for `createRoot` to `root.render(...)`:
+Sık yapılan bir hata, `createRoot` seçeneklerini `root.render(...)` öğesine aktarmaktır:
-Warning: You passed a second argument to root.render(...) but it only accepts one argument.
+Uyarı: root.render(...) öğesine ikinci bir bağımsız değişken ilettiniz, ancak bu öğe yalnızca bir bağımsız değişken kabul eder.
-To fix, pass the root options to `createRoot(...)`, not `root.render(...)`:
+Düzeltmek için, kök seçeneklerini `root.render(...)` yerine `createRoot(...)` öğesine aktarın:
```js {2,5}
// 🚩 Wrong: root.render only takes one argument.
root.render(App, {onUncaughtError});