Uh oh!
There was an error while loading. Please reload this page.
Translate React (top-level) API Reference - #47
Conversation
potato4d
left a comment
There was a problem hiding this comment.
Suspense までだけですが、 Lint 的に直したほうが良さそうなものがいくつかある & imo を書きました。スペース周りなどは下のほうにもあるのが見えたので、対応お願いいたします🙏
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
smikitky
left a comment
There was a problem hiding this comment.
長い記事でもあり大量になってしまい申し訳ありません。一旦こちらで対応をお願いします。
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
以下の修正を行いました。
(コミットは割りとまとめてしまってます🙏) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| 与えられた型の React 要素を生成する関数を返します。[`React.createElement()`](#createElement) と同様に、`type` 引数はタグ名の文字列(`'div'` や `'span'` など)、[React コンポーネント](/docs/components-and-props.html)型(クラスもしくは関数)、[React フラグメント](#reactfragment)型のいずれかです。 | ||
| This helper is considered legacy, and we encourage you to either use JSX or use `React.createElement()` directly instead. | ||
| このヘルパーはレガシーと見なされます。JSX か `React.createElement()` を直接使用することを勧めます。 |
There was a problem hiding this comment.
| このヘルパーはレガシーと見なされます。JSX か `React.createElement()`を直接使用することを勧めます。 | |
| このヘルパーはレガシーだと考えられているので、代わりにJSX か `React.createElement()`を直接使用することをおすすめします。 |
| ### `React.Children` | ||
| `React.Children` provides utilities for dealing with the `this.props.children` opaque data structure. | ||
| `React.Children` はデータ構造が非公開の `this.props.children` を扱うためのユーティリティを提供します。 |
There was a problem hiding this comment.
| `React.Children`はデータ構造が非公開の`this.props.children` を扱うためのユーティリティを提供します。 | |
| `React.Children`はデータ構造が不明瞭な`this.props.children` を扱うためのユーティリティを提供します。 |
There was a problem hiding this comment.
「データ構造が不明瞭な」だと訳が分からないので、これは「非公開」でいいと思いますが。もちろん React の中の人はデータ構造を知っているわけですし。 console.log(props.children) とかすれば中身は明瞭に見えます(ドキュメント化されていないReactの仮想DOMオブジェクト本体です)。
Uh oh!
There was an error while loading. Please reload this page.
| ``` | ||
| Verifies that `children` has only one child (a React element) and returns it. Otherwise this method throws an error. | ||
| `children` が 1 つの子要素しか持たないことを確認します。そうでない場合、このメソッドはエラーを投げます。 |
There was a problem hiding this comment.
| `children` が 1 つの子要素しか持たないことを確認します。そうでない場合、このメソッドはエラーを投げます。 | |
| `children` が 1 つの子要素しか持たないことを確認し、その結果を返します。そうでない場合、このメソッドはエラーを投げます。 |
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
5997895 to
d497a56Compare…rrectly removed line
Uh oh!
There was an error while loading. Please reload this page.
| * * * | ||
| ## Reference | ||
| ## レファレンス |
There was a problem hiding this comment.
| ## レファレンス | |
| ## リファレンス |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
smikitky
commented
Feb 5, 2019
すみませんもう少しだけ対応をお願いします。 |
smikitky
commented
Feb 9, 2019
以下の3点のみ保留になっているので解決したいです。 opaque data structure の訳この opaque の意味についてはここにあります。長く書くなら「インターフェースが公開ではないので中身をブラックボックスとして扱うべき」という意味でいいと思います。Reactの仮想DOMの実体(createElementの返り値であるオブジェクト)は、(console.logすることで「明瞭」に中身は見えますが)そのデータ構造は公開APIの一部ではないためオペークなデータです。「データ構造が不明瞭」ではこのような意図が伝わらず混乱を招きそうなので、「データ構造が非公開」が適切だと私は思います。改めて @takanorip さんのお考えはいかがですか。 for の訳抜け
「 you can wrap it in a call to |
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
lightnet328
commented
Feb 10, 2019
対応が滞ってしまい、申し訳ありません。 |
smikitky
commented
Feb 12, 2019
@lightnet328 もしもお忙しいようでしたらこちらで引き取って残りの作業を終わらせますが、如何しますか? |
lightnet328
commented
Feb 13, 2019
@smikitky すみません、残りの作業というのは React.Component (https://reactjs.org/docs/react-component.html) の翻訳のことでしょうか?遅くなってしまい大変申し訳ありませんが、本日まで作業ができなかったのでこれから進めていきたいと思っています。よろしくお願いいたします。 |
smikitky
commented
Feb 13, 2019
申し訳ありません、確かめたところ残っていたのは「レファレンス → リファレンス」だけのようで、ほかは対応頂いているようです。opaque と wrap it in a call の件は @takanorip さんから1週間ほど反応がないですが、私は現状のもので問題ありません。 |
smikitky
left a comment
There was a problem hiding this comment.
何度も本当に申し訳ありません、textlintがこれだけエラーになっているので修正をお願いします
Uh oh!
There was an error while loading. Please reload this page.
lightnet328
commented
Feb 13, 2019
Outdated になっていたため、修正したものと勘違いしていました。 |
Co-Authored-By: lightnet328 <lightnet328@gmail.com>
takanorip
commented
Feb 13, 2019
コメント遅くなってしまいましたが、現状のもので大丈夫だと思います。ありがとうございます! |
smikitky
commented
Feb 14, 2019
@lightnet328@takanorip@potato4d ありがとうございました! |
This PR is a part of #4.
Translate: React Top-Level API – React