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

Propsの翻訳 #14

Closed
wants to merge 1 commit into from
Closed

Propsの翻訳 #14

wants to merge 1 commit into from

Conversation

shunueda
Copy link

レビューよろしくお願いします🙇

気になる点

  1. The power to do this is what makes React so cool

何度か出てくるフレーズです。

この便利さが React の人気の秘密です。

この訳はどうでしょう?統一したほうがいいかもしれません。

  1. Your own components can also use props. This lets you make a single component that is used in many different places in your app, with slightly different properties in each place by referring to props in your render function. Here's an example:

例が関数コンポーネントなのにrenderについて話しているのでまるごとカットしました。必要ならば翻訳します。


For example, one basic React Native component is the `Image`. When you create an image, you can use a prop named `source` to control what image it shows.
例えば、React Native における基本的なタグの一つ・ `Image` は、 `source` という props を使って内容を表現します。
Copy link
Member

Choose a reason for hiding this comment

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

内容を表現します は what image it shows なので どんな画像を表示するかを決めることができます  の方がしっくりくるかもしれません・・・!!


Your own components can also use `props`. This lets you make a single component that is used in many different places in your app, with slightly different properties in each place by referring to `props` in your `render` function. Here's an example:
オリジナルのコンポーネントでも `props` を使うことができます。つまり、一つのコンポーネントを `props` でカスタマイズすることでアプリの色々な場所に、そこに合った形で使うことが出来るようになるわけです。例を見てみましょう。
Copy link
Member

Choose a reason for hiding this comment

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

お見事ですね!!

@@ -50,8 +50,8 @@ export default LotsOfGreetings = () => {
}
```

Using `name` as a prop lets us customize the `Greeting` component, so we can reuse that component for each of our greetings. This example also uses the `Greeting` component in JSX, similar to the [Core Components](intro-react-native-components). The power to do this is what makes React so cool - if you find yourself wishing that you had a different set of UI primitives to work with, you can invent new ones.
`name` を `props` として使うことで、`Greeting` コンポーネントをカスタマイズすることができるので、挨拶のたびに再利用することができます。この便利さが React の人気の秘密です。もし、既存の UI プリミティブ (`div`、`span`, `form` 等) だと物足りないと感じたら、あなたが作ってみてはどうでしょう?
Copy link
Member

Choose a reason for hiding this comment

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

This example also uses the Greeting component in JSX, similar to the Core Components

ここの部分どうしましょう・・?

Copy link
Author

Choose a reason for hiding this comment

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

Greeting を JSX として使ってるよ~って事を言ってますが、割愛しちゃいました・・・あったほうが親切ですかね・・・?

@YutamaKotaro
Copy link
Member

わ・・・・!!もしかして途中だったらすみません・・・!!

@YutamaKotaro
Copy link
Member

Your own components can also use props. This lets you make a single component that is used in many different places in your app, with slightly different properties in each place by referring to props in your render function. Here's an example:

これ僕もカットしていいかなと思いました!

@YutamaKotaro
Copy link
Member

#21 こちら作らさせていただきました!!

@shunueda shunueda closed this by deleting the head repository Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants