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

回答編集履歴

2

a

2018/04/30 12:23

投稿

HayatoKamono
HayatoKamono

スコア2415

answer CHANGED
@@ -21,4 +21,4 @@
21
21
 
22
22
  > The biggest change is that we’ve extracted React.PropTypes and React.createClass into their own packages. Both are still accessible via the main React object, but using either will log a one-time deprecation warning to the console when in development mode. **This will enable future code size optimizations.**
23
23
 
24
- 切り離して管理するようになった理由は太字にした部分になるのかなと思います。
24
+ 切り離して管理するようになった理由は太字にした部分になるのかなと思います。

1

a

2018/04/30 12:23

投稿

HayatoKamono
HayatoKamono

スコア2415

answer CHANGED
@@ -3,6 +3,7 @@
3
3
  ](https://reactjs.org/docs/typechecking-with-proptypes.html)
4
4
 
5
5
  質問内のリンク先に記載の通りで、Reactのパッケージに含めるのを辞めただけの話です。
6
+
6
7
  Reactのパッケージに含まれていた`PropTypes`は独立した`prop-types`モジュールとして切り離したので、`props-types`を使うように書いてありますよね?
7
8
 
8
9
  > The biggest change is that we’ve extracted React.PropTypes and React.createClass into their own packages.
@@ -16,4 +17,8 @@
16
17
 
17
18
  [https://github.com/facebook/prop-types/blob/master/CHANGELOG.md#before-1550](https://github.com/facebook/prop-types/blob/master/CHANGELOG.md#before-1550)
18
19
 
19
- この辺りでも同様のことが書いてあります。
20
+ この辺りでも同様のことが書いてあります。
21
+
22
+ > The biggest change is that we’ve extracted React.PropTypes and React.createClass into their own packages. Both are still accessible via the main React object, but using either will log a one-time deprecation warning to the console when in development mode. **This will enable future code size optimizations.**
23
+
24
+ 切り離してて管理するようになった理由は太字にした部分になるのかなと思います。