同じ轍を踏まないように今まで React で出会ったエラーと警告を 覚えてる限りこのページに纏めていきます。 infoES6 で書いてます。react (react-dom)setState メソッド がコンポーネントから切り離されたため、updater 属性が参照できないメッセージTypeError: Cannot read property 'updater' of undefined対応setStateのthisを固定するOKbind で this を固定するfetch(url).then(res => res.json()).then(this.setState.bind(this))
![エラーで学ぶReactJS](https://cdn-ak-scissors.b.st-hatena.com/image/square/327607d6fd901b6002a688fe9e5256e3c0b5f591/height=288;version=1;width=512/https%3A%2F%2Fnote.crohaco.net%2Fmedia%2Freact.png)