reactのrender propsをtypescriptでやる

childrenに引数渡したい時、render propを使えばできる。 functional componentでのやり方がわからなくていろいろハマったのでメモ https://reactjs.org/docs/render-props.html 結論 // children interface …