Skip to content
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

translate legacy factories page #85

Merged
merged 2 commits into from
Mar 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 11 additions & 11 deletions content/warnings/legacy-factories.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
title: React Element Factories and JSX Warning
title: React Element Factories and JSX Uyarısı
layout: single
permalink: warnings/legacy-factories.html
---

You probably came here because your code is calling your component as a plain function call. This is now deprecated:
Muhtemelen buraya kodunuz, bileşeninizi sade bir fonksiyon olarak çağırdığı için geldiniz. Bu artık kullanımdan kaldırıldı:

```javascript
var MyComponent = require('MyComponent');

function render() {
return MyComponent({ foo: 'bar' }); // WARNING
return MyComponent({ foo: 'bar' }); // UYARI
}
```

## JSX {#jsx}

React components can no longer be called directly like this. Instead [you can use JSX](/docs/jsx-in-depth.html).
React bileşenleri artık bu şekilde direkt olarak çağırılamaz. Bunun yerine [JSX kullanabilirsiniz](/docs/jsx-in-depth.html).

```javascript
var React = require('react');
Expand All @@ -27,9 +27,9 @@ function render() {
}
```

## Without JSX {#without-jsx}
## JSX Olmadan {#without-jsx}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep this. This describes a scenario. But below, (Dynamic components without JSX) it implies a name or an adjective. There is a tiny difference between them.


If you don't want to, or can't use JSX, then you'll need to wrap your component in a factory before calling it:
Eğer JSX kullanmak istemiyorsanız ya da kullanamıyorsanız bileşeninizi çağırmadan önce onu bir [`createFactory`(/docs/react-api.html#createfactory)] ile sarmallamanız gerekiyor:

```javascript
var React = require('react');
Expand All @@ -40,11 +40,11 @@ function render() {
}
```

This is an easy upgrade path if you have a lot of existing function calls.
Eğer halihazırda çok fazla fonksiyon çağrınız varsa bu onları yükseltmek için kolay bir yoldur.

## Dynamic components without JSX {#dynamic-components-without-jsx}
## JSX'siz dinamik bileşenler {#dynamic-components-without-jsx}

If you get a component class from a dynamic source, then it might be unnecessary to create a factory that you immediately invoke. Instead you can just create your element inline:
Eğer bir bileşen sınıfını dinamik bir kaynaktan alıyorsanız, anlık olarak çalıştırdığınız için bir Factory oluşturmak gereksiz olabilir. Bunun yerine sadece elemanınızı satır içi şeklinde oluşturabilirsiniz:

```javascript
var React = require('react');
Expand All @@ -54,6 +54,6 @@ function render(MyComponent) {
}
```

## In Depth {#in-depth}
## Daha fazla detay {#in-depth}

[Read more about WHY we're making this change.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)
[Bu değişikliği NEDEN yaptığımıza dair daha fazla detayı okuyun.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)