2018-02-08から1日間の記事一覧
github.com Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have …
import { syncHistoryWithStore } from 'react-router-redux'; import { browserHistory } from 'react-router'; これは古い?4系 https://github.com/reactjs/react-router-redux https://github.com/ReactTraining/react-router/tree/master/packages/reac…
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18999
Contextを使う。 Context - React 親子でバケツリレー式にできそう。 Fluxは別に気にせず最小コード例がいい。 qiita.com 親から孫に渡す時は、子にもcontextTypesのgetのstaticプロパティ必須 親->子->孫
ElementのジェネリックのHTMLCollectionをHTMLCollectionOfと言ってる?? Ofも付いたものまで型に見える・・。 こいつは配列じゃないのでforEachで回せない。 http://ptech.g.hatena.ne.jp/noromanba/20120521/1337639496 Array.prototype.forEach.call()を…