![null](https://istack.dev59.com/1p9oN.webp)
代码:
import React from 'react';
import { LinkedinShareButton } from "react-share";
let shareUrl = window.location.href;
export default class Share extends React.Component {
render() {
return(
<LinkedinShareButton url={`${shareUrl}`}>
<div className="icon-socmed-white linkedin">
<FaLinkedinIn/>
</div>
</LinkedinShareButton>)
}
}
如果我试图将主页页面作为分享文章共享,那么这种情况很奇怪。