更新时间:2023-12-05 10:40:34
感谢@ zero298&@Pambi,以下解决方案对我有用:
Thanks to @zero298 & @Pambi , the below solution worked for me:
class Survey extends React.Component {
componentDidMount() {
let el = document.createElement("script");
el.src = "https://widget.surveymonkey.com/collect/website/js/tRaisffsdgj758hTBazgd4IXxGtDzETeaqu1iDMfLhIPM5OoAHZFDWBMRDTjq_2dfsd.js";
document.body.appendChild(el);
}
render() {
return <Container className="pageContainer">
<Row className="homeRow">
<div id="smcx-sdk"></div>
</Row>
</Container>
}
}
export default Survey