<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>子ネタだしタイトルが全てだけど、おもしろかったので共有します。 たとえば、react-router (react-router-dom) v5 の Link コンポーネントの to propには、文字列・オブジェクト・関数を渡すことができる。 ここで、react-router-domの型定義を見ると、&lt;Link&gt; コンポーネントはジェネリックな関数・インタフェースとして定義されていることが分かる。 これらを踏まえて以下のようなコードを書いてみると、コンパイルが通るし動作することが分かる。renderしたいコンポーネントに型引数を書くことができる。 type State = ...; expor…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2021%2F07%2F26%2F114437&quot; title=&quot;TypeScript + JSXでrenderするコンポーネントに型引数を書ける - 私が歌川です&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-26 11:44:37</published>
  <title>TypeScript + JSXでrenderするコンポーネントに型引数を書ける</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2021/07/26/114437</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
