昨年から Reactl界隈で「Render Props」という言葉をよく目にするようになりました。Render Props は、React のコンポーネントを再利用可能な方法でその状態や振る舞いをカプセル化するためのパターンのひとつです。同様の目的でよく使われるパターンに Higher-Order Components (HOC) がありますが、Render Props は HOC の問題を解決したもので、今後主抽象化パターンの本流になりうると言われています。この Render Props を全然追いきれていなかったので、今回 React の公式ドキュメントの『Render Props』 の部分を日本語に訳してみました。 The term “render prop” refers to a simple technique for sharing code between React co
![Reactの「Render Props」について – 公式ドキュメント日本語訳 | maesblog](https://cdn-ak-scissors.b.st-hatena.com/image/square/54750c15a12e660403795bfb48423a7ca39d131b/height=288;version=1;width=512/https%3A%2F%2Fmae.chab.in%2Fwp-content%2Fuploads%2F2018%2F09%2F9f94a9474c2d859a39826f31627bf467-1024x528.png)