Skip to content

refact composition APIの文章を改善した #195

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

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

harapeko
Copy link
Contributor

Description of Problem

-props はリアクティブなので、props のリアクティブを削除してしまうため、ES6 の分割代入を使うことができません。
「リアクティブだから、props のリアクティブを削除してしまう」というように受け取れてしまいます。

原文でも、次のように先に結論を述べた後で、

because props are reactive, you cannot use ES6 destructuring

次のように根拠を説明しています。

because it will remove props reactivity.

Proposed Solution

原文に沿った説明になるように修正しました。

Additional Information

ja: https://v3.ja.vuejs.org/guide/composition-api-setup.html#プロパティ:~:text=%E3%81%97%E3%81%8B%E3%81%97%E3%80%81props%20%E3%81%AF%E3%83%AA%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81props%20%E3%81%AE%E3%83%AA%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%82%92%E5%89%8A%E9%99%A4%E3%81%97%E3%81%A6%E3%81%97%E3%81%BE%E3%81%86%E3%81%9F%E3%82%81%E3%80%81ES6%20%E3%81%AE%E5%88%86%E5%89%B2%E4%BB%A3%E5%85%A5%E3%82%92%E4%BD%BF%E3%81%86%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82
en: https://v3.vuejs.org/guide/composition-api-setup.html#props:~:text=However%2C%20because%20props%20are%20reactive%2C%20you,because%20it%20will%20remove%20props%20reactivity.

@netlify
Copy link

netlify bot commented Feb 12, 2021

Deploy preview for vuejs-v3-ja-doc-preview ready!

Built with commit bf5965a

https://deploy-preview-195--vuejs-v3-ja-doc-preview.netlify.app

Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

ありがとうございます!

@kazupon kazupon merged commit 20e817f into vuejs-jp:lang-ja Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants