回答編集履歴

2

誤字

2021/07/07 22:44

投稿

tenlife
tenlife

スコア70

test CHANGED
@@ -1,6 +1,18 @@
1
1
  reactiveの設定をつけるとうまく通りました。
2
2
 
3
3
  vue2で行う場合は@vue/composition-apiでreactiveも読み込む必要があるみたいです。(自分の認識)
4
+
5
+
6
+
7
+ mainでVue.useします。(これ大事そう)
8
+
9
+ ```main
10
+
11
+ import VueCompositionApi from '@vue/composition-api';
12
+
13
+ Vue.use(VueCompositionApi);
14
+
15
+ ```
4
16
 
5
17
 
6
18
 

1

誤字

2021/07/07 22:44

投稿

tenlife
tenlife

スコア70

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  setup() {
18
18
 
19
- // const title = ref<string>("composition-api");
19
+ const title = ref<string>("composition-api");
20
20
 
21
21
  const state = reactive<{ count: number }>({
22
22
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  return {
30
30
 
31
- // title,
31
+ title,
32
32
 
33
33
  state
34
34