<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>USAGI-WRP</author_name>
  <author_url>https://blog.hatena.ne.jp/USAGI-WRP/</author_url>
  <blog_title>C++ ときどき ごはん、わりとてぃーぶれいく☆</blog_title>
  <blog_url>https://usagi.hatenablog.jp/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>.jsx</anon>
    <anon>.tsx</anon>
    <anon>&lt;script&gt;</anon>
    <anon>external</anon>
    <anon>how-to</anon>
    <anon>run-time</anon>
    <anon>load</anon>
    <anon>link</anon>
    <anon>tips</anon>
  </categories>
  <description>諸事情の例 コンポーネントの render 時に CDN やどこかしらから &lt;script src=&quot;https://example.com/hogehoge.js&quot; crossorigin&gt;&lt;/script&gt; とかしたい コンポーネントの render 時に .jsx/.tsx の翻訳時には有効ではない ECMAScript コードをちょろまかしたい 4つの方法 もっとあるというのはさておき。 1. react-script-tag https://www.npmjs.com/package/react-script-tag この方法では DOM 構造的には in-situ な感じで &lt;sc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2020%2F07%2F17%2F124600&quot; title=&quot;React プロジェクトの src 内のコンポーネントから諸事情によりウェブサイト外部の SCRIPT を読む方法のメモ - C++ ときどき ごはん、わりとてぃーぶれいく☆&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>2020-07-17 12:46:00</published>
  <title>React プロジェクトの src 内のコンポーネントから諸事情によりウェブサイト外部の SCRIPT を読む方法のメモ</title>
  <type>rich</type>
  <url>https://usagi.hatenablog.jp/entry/2020/07/17/124600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
