React Twitter Embed の TwitterTweetEmbed コンポーネントで読み込み中に文字を出す方法

結論

placeholder を props として渡す。

(前略)
  return (
    <>
      <TwitterTweetEmbed
        placeholder={'読み込み中…'}
        tweetId="12345678901234567890"
    </>
  )
(後略)

ソース

github.com

Powered by はてなブログ