-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: composablesセクションのハンズオン資料作成 #16
Conversation
content/1.vue/4.composition-api/.template/solutions/useCounter.js
Outdated
Show resolved
Hide resolved
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.
2 点だけコメントしました!(同じ内容のものは省略しています)
@@ -0,0 +1,18 @@ | |||
<script setup lang="ts"> | |||
const count = ref<number>(1) |
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.
ジェネリクス渡さなくていいと思います
- const count = ref<number>(1)
+ const count = ref(1)
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.
<div> | ||
<p>count is {{ count }}</p> | ||
<p>doubled is {{ doubled }}</p> | ||
<button @click="increment"> |
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.
type="button"
をつけて欲しいです!
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.
修正概要
composablesセクションのハンズオン資料作成を作成しました。
備考
EH側はcomposition api ですが、JP側はnuxtのcomposablesの内容にする方針になりました
close #6