teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

deprecatedについて、raccyさんのコメントを受けて追記

2016/09/03 03:36

投稿

flied_onion
flied_onion

スコア2604

answer CHANGED
@@ -17,4 +17,11 @@
17
17
 
18
18
  けど、15.1からdeprecatedなのかな?
19
19
  [https://github.com/facebook/react/pull/6444](https://github.com/facebook/react/pull/6444)
20
- まだ利用してよいかは別途調べてみてください。
20
+ まだ利用してよいかは別途調べてみてください。
21
+
22
+ **追記**
23
+
24
+ raccyさんのコメントを受けて:
25
+ [https://facebook.github.io/react/blog/2016/04/08/react-v15.0.1.html](https://facebook.github.io/react/blog/2016/04/08/react-v15.0.1.html) のChangelogにありますが、`React.__spread`非公開APIをdeprecatedにしたという事の様で、少なくともBabelではエラーなく展開可能なようです。(`React.__spread`も直しはしてて、このAPI使ってるツールでもこの時点では動くようにはしたけどもう使うなって事ですかね)
26
+
27
+ raccyさんありがとうございます。

1

typoの修正とちょっと補足

2016/09/03 03:36

投稿

flied_onion
flied_onion

スコア2604

answer CHANGED
@@ -10,9 +10,10 @@
10
10
  なら、
11
11
 
12
12
  ```jsx
13
- <App x="10" y="10" />
13
+ <App x="10" y="20" />
14
14
  ```
15
15
  のような感じになります。
16
+ 変数props側で文字ではなく数値だと、App側のpropsにも数値でくるなど違いはあります。
16
17
 
17
18
  けど、15.1からdeprecatedなのかな?
18
19
  [https://github.com/facebook/react/pull/6444](https://github.com/facebook/react/pull/6444)