-
Notable Scientists
+
Önemli Bilim İnsanları
Maria Skłodowska-Curie
-
- Profession:
- physicist and chemist
+ Meslek:
+ fizikçi ve kimyager
-
- Awards: 4
- (Nobel Prize in Physics, Nobel Prize in Chemistry, Davy Medal, Matteucci Medal)
+ Ödüller: 4
+ (Fizik Nobel Ödülü, Kimya Nobel Ödülü, Davy Madalyası, Matteucci Madalyası)
-
- Discovered:
- polonium (element)
+ Keşfedilenler:
+ polonyum (element)
@@ -477,16 +475,16 @@ export default function Gallery() {
/>
-
- Profession:
- geochemist
+ Meslek:
+ jeokimyager
-
- Awards: 2
- (Miyake Prize for geochemistry, Tanaka Prize)
+ Ödüller: 2
+ (Miyake Ödülü (jeokimya), Tanaka Ödülü)
-
- Discovered:
- a method for measuring carbon dioxide in seawater
+ Keşfedilenler:
+ deniz suyundaki karbondioksit ölçüm yöntemi
@@ -524,15 +522,15 @@ li { margin: 5px; }
-Start by extracting the markup for one of the scientists. Then find the pieces that don't match it in the second example, and make them configurable by props.
+İlk olarak, bilim insanlarından birinin işaretlemesini ayıklayın. Daha sonra, ikinci örnekte eşleşmeyen parçaları bulun ve bunları prop'larla yapılandırılabilir hâle getirin.
-In this solution, the `Profile` component accepts multiple props: `imageId` (a string), `name` (a string), `profession` (a string), `awards` (an array of strings), `discovery` (a string), and `imageSize` (a number).
+Bu çözümde, `Profile` bileşeni birden çok prop kabul eder: `imageId` (bir string), `name` (bir string), `profession` (bir string), `awards` (bir string dizisi), `discovery` (bir string) ve `imageSize` (bir sayı).
-Note that the `imageSize` prop has a default value, which is why we don't pass it to the component.
+`imageSize` prop'unun varsayılan bir değeri olduğu için bileşene aktarmıyoruz.
@@ -558,13 +556,13 @@ function Profile({
height={imageSize}
/>
- - Profession: {profession}
+ - Meslek: {profession}
-
- Awards: {awards.length}
+ Ödüller: {awards.length}
({awards.join(', ')})
-
- Discovered:
+ Keşfedilenler:
{discovery}
@@ -575,27 +573,27 @@ function Profile({
export default function Gallery() {
return (
-
Notable Scientists
+
Önemli Bilim İnsanları
@@ -630,9 +628,9 @@ li { margin: 5px; }
-Note how you don't need a separate `awardCount` prop if `awards` is an array. Then you can use `awards.length` to count the number of awards. Remember that props can take any values, and that includes arrays too!
+Eğer `awards` bir dizi ise ayrı bir `awardCount` prop'una ihtiyacınız olmadığına dikkat edin. Ardından, ödül sayısını saymak için `awards.length` kullanabilirsiniz. Prop'ların her türlü değeri kabul edebildiğini, bunların arasında dizilerin de olduğunu unutmayın!
-Another solution, which is more similar to the earlier examples on this page, is to group all information about a person in a single object, and pass that object as one prop:
+Bu sayfadaki önceki örneklerle daha benzer olan başka bir çözüm, bir kişi hakkındaki tüm bilgileri tek bir nesnede gruplamak ve bu nesneyi tek bir prop olarak geçirmektir:
@@ -654,14 +652,14 @@ function Profile({ person, imageSize = 70 }) {
/>
-
- Profession: {person.profession}
+ Meslek: {person.profession}
-
- Awards: {person.awards.length}
+ Ödüller: {person.awards.length}
({person.awards.join(', ')})
-
- Discovered:
+ Keşfedilenler:
{person.discovery}
@@ -672,27 +670,27 @@ function Profile({ person, imageSize = 70 }) {
export default function Gallery() {
return (
-
Notable Scientists
+
Önemli Bilim İnsanları
@@ -727,15 +725,15 @@ li { margin: 5px; }
-Although the syntax looks slightly different because you're describing properties of a JavaScript object rather than a collection of JSX attributes, these examples are mostly equivalent, and you can pick either approach.
+Sözdizimi biraz farklı görünüyor çünkü bir JavaScript nesnesinin özelliklerini tanımlıyorsunuz, JSX özelliklerinin bir koleksiyonunu tanımlamıyorsunuz. Ancak, bu örnekler büyük ölçüde eşdeğerdir ve istediğiniz yaklaşımı seçebilirsiniz.
-#### Adjust the image size based on a prop {/*adjust-the-image-size-based-on-a-prop*/}
+#### Bir prop'a dayanarak resim boyutunu ayarlayın {/*adjust-the-image-size-based-on-a-prop*/}
-In this example, `Avatar` receives a numeric `size` prop which determines the `
![]()
` width and height. The `size` prop is set to `40` in this example. However, if you open the image in a new tab, you'll notice that the image itself is larger (`160` pixels). The real image size is determined by which thumbnail size you're requesting.
+İlgili örnekte, `Avatar` bileşeni, `
![]()
` genişliği ve yüksekliğini belirleyen sayısal bir `size` prop'u alır. Bu örnekte `size` prop'u `40` olarak ayarlanmıştır. Ancak, resmi yeni bir sekmede açarsanız, resmin kendisinin daha büyük (`160` piksel) olduğunu fark edeceksiniz. Gerçek resim boyutu, hangi küçük resim boyutunun talep edildiğine bağlıdır.
-Change the `Avatar` component to request the closest image size based on the `size` prop. Specifically, if the `size` is less than `90`, pass `'s'` ("small") rather than `'b'` ("big") to the `getImageUrl` function. Verify that your changes work by rendering avatars with different values of the `size` prop and opening images in a new tab.
+`Avatar` bileşenini, `size` prop'u temelinde en yakın resim boyutunu isteyecek şekilde değiştirin. Özellikle, `size` 90'dan küçükse, `getImageUrl` işlevine `'b'` ("büyük") yerine `'s'` ("küçük") geçirin. `size` prop'unun farklı değerleriyle avatarları render ederek ve resimleri yeni bir sekmede açarak değişikliklerinizin işleyip işlemediğini doğrulayın.
@@ -786,7 +784,7 @@ export function getImageUrl(person, size) {
-Here is how you could go about it:
+İşte bunu nasıl yapabilirsiniz:
@@ -848,7 +846,7 @@ export function getImageUrl(person, size) {
-You could also show a sharper image for high DPI screens by taking [`window.devicePixelRatio`](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio) into account:
+Ayrıca [`window.devicePixelRatio`](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio) özelliğini dikkate alarak yüksek DPI ekranlar için daha keskin bir resim gösterebilirsiniz:
@@ -919,13 +917,13 @@ export function getImageUrl(person, size) {
-Props let you encapsulate logic like this inside the `Avatar` component (and change it later if needed) so that everyone can use the `` component without thinking about how the images are requested and resized.
+Prop'lar, bu şekilde mantığı `Avatar` bileşeni içine kapsayarak (ve ihtiyaç duyulursa daha sonra değiştirerek), resimlerin nasıl talep edildiği ve yeniden boyutlandırıldığı hakkında düşünmeden herkesin `` bileşenini kullanabilmesini sağlar.
-#### Passing JSX in a `children` prop {/*passing-jsx-in-a-children-prop*/}
+#### Bir `children` prop'u içinde JSX geçirmek. {/*passing-jsx-in-a-children-prop*/}
-Extract a `Card` component from the markup below, and use the `children` prop to pass different JSX to it:
+Aşağıdaki yapıdan bir `Card` bileşeni çıkarın ve farklı JSX geçirmek için `children` prop'unu kullanın:
@@ -947,8 +945,8 @@ export default function Profile() {