メンチカツ

ロースカツが好きです

2016-03-30から1日間の記事一覧

ReactのcomponentWillReceivePropsはPropTypes.funcの呼び出しも捕捉する

はまったのでメモ 以下のようなpropsとstateを持つコンポーネント static propTypes = { onChange: PropTypes.func.isRequired, // this.state.selectedItemListが変更されたときに発火 itemList: PropTypes.array.isRequired, // DBからとってきたマスター…