参考: https://medium.com/@jrwebdev/react-higher-order-component-patterns-in-typescript-42278f7590fb
まだ HOC と TypeScript の良い落としどころが見えてないが、何となく理解しつつある現状。 「TypeScript こわい」から卒業したのと、良記事があったので簡単にまとめておきます。
悪い。 => 型を設定することが難しい。
しかしやっていきたいので、any
を使わずに整理していこう。