-
Notifications
You must be signed in to change notification settings - Fork 9
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
Propsの翻訳 #14
Conversation
|
||
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 を使って内容を表現します。 |
There was a problem hiding this comment.
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` でカスタマイズすることでアプリの色々な場所に、そこに合った形で使うことが出来るようになるわけです。例を見てみましょう。 |
There was a problem hiding this comment.
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` 等) だと物足りないと感じたら、あなたが作ってみてはどうでしょう? |
There was a problem hiding this comment.
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
ここの部分どうしましょう・・?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greeting を JSX として使ってるよ~って事を言ってますが、割愛しちゃいました・・・あったほうが親切ですかね・・・?
わ・・・・!!もしかして途中だったらすみません・・・!! |
これ僕もカットしていいかなと思いました! |
#21 こちら作らさせていただきました!! |
レビューよろしくお願いします🙇
気になる点
何度か出てくるフレーズです。
この訳はどうでしょう?統一したほうがいいかもしれません。
例が関数コンポーネントなのにrenderについて話しているのでまるごとカットしました。必要ならば翻訳します。