File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : 描画関数とJSX
3
- updated : 2019-01-20
3
+ updated : 2019-02-03
4
4
type : guide
5
5
order : 303
6
6
---
@@ -494,7 +494,7 @@ new Vue({
494
494
})
495
495
```
496
496
497
- <p class =" tip " >`createElement` を `h` にエイリアスしていることは、 Vue のエコシステムの中でよく見かける慣習です。そして、それは実は JSX には必須です。もし `h` がそのスコープ内で利用可能でない場合、アプリケーションはエラーを throw するでしょう。</p >
497
+ <p class =" tip " >`createElement` を `h` にエイリアスしていることは、 Vue のエコシステムの中でよく見かける慣習です。そして、それは実は JSX には必須です。Vue の Babel プラグインの [バージョン 3.4.0](https://github.com/vuejs/babel-plugin-transform-vue-jsx#h-auto-injection) 以降では、ES2015 のシンタックスで宣言された JSX を含むメソッドや getter(関数やアロー関数は対象外)に対しては、自動的に `const h = this.$createElement` が注入されるため、`(h)` パラメーターは省略できます。それ以前のバージョンでは、 もし `h` がそのスコープ内で利用可能でない場合、アプリケーションはエラーを throw するでしょう。</p >
498
498
499
499
より詳しい JSX の JavaScript へのマップの仕方については、[ usage ドキュメント] ( https://github.com/vuejs/jsx#installation ) をご参照ください。
500
500
You can’t perform that action at this time.
0 commit comments