0
我想在我的反應頁面的特定位置包含linkedin follow按鈕。如何將下面的標籤呈現爲div?如何在ReactJS中呈現標記腳本
<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: pt_BR</script>
<script type="IN/FollowCompany" data-id="xxxxx"></script>
謝謝。
你不會渲染具有反應的腳本標記。只需將它們附加到您的html文件。 – trixn
或者你可以看看https://github.com/leozdgao/react-async-script-loader – Purgatory