簡體   English   中英

如何讓這個 twitter 提要在我的 React 組件中呈現?

[英]How do I get this twitter feed to render in my React component?

我是 React 的新手。 我已經使用它大約兩個星期了。

我試圖讓這個 Twitter 提要在我的 React 組件上呈現,但我不確定如何。

問題:當我點擊導航欄鏈接進入這個頁面時,所有顯示的是我的登錄組件。

這是 Twitter 提要的代碼。 知道為什么以及如何解決此問題以僅顯示提要嗎?

<a
  class="twitter-timeline"
  data-lang="en"
  data-theme="dark"
  href={"https://twitter.com/MTA?ref_src=twsrc%5Etfw%22%7D%3ETweets"}
>
</a> 
<script
  async
  src="https://platform.twitter.com/widgets.js"
  charset="utf-8"
></script>

實際上能夠解決這個問題。 它仍然有點問題,但我意識到我錯過了一些我應該下載的軟件包

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM