Sellapp 与 React 集成

问题描述 投票:0回答:1
<head>
<script src="https://embed.sellpass.io/embed.js"></script>
</head>

该按钮仅在放置在index.html中的react之外时才起作用,在React组件中不起作用,什么也不会发生。这很不幸,因为我以前的提供商工作得很好。

<body>
<button
  data-sellpass-product-path="path"
  data-sellpass-domain="url">
  Purchase
</button>

我尝试了各种技巧,但没有一个奏效,所以我寻求帮助。 更新: 当我刷新该组件所在的页面时,它仅在 React 组件中起作用。

html reactjs cdn
1个回答
0
投票

嘿,你能向我解释一下你是如何做到这一点的吗?

© www.soinside.com 2019 - 2024. All rights reserved.