How to refresh Addthis in react?
问题 import React from "react"; import LoadScript from "react-load-script"; function Addthis() { return ( <LoadScript url="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-xxxx" /> ); } export default Addthis; This is the code that I have so far to initialize addthis. I found this issue on GitHub, but no solutions yet: https://gist.github.com/jonathanconway/9925286 回答1: Use something like this: import React from "react"; import ReactDOM from "react-dom"; import LoadScript from "react-load