Open x3malmusic opened 2 years ago
so it worked when i deleted class - react-share__ShareButton, but why it's there in the first place? i dont understand how to get rid of it
same issue, that's because this class has style display: none !important
Manually remove this class from all share buttons. (Solution for react V >= 17) Example code:
useEffect(() => {
const buttonList = document.querySelectorAll(".react-share__ShareButton");
buttonList.forEach((item) =>
item.classList.remove("react-share__ShareButton")
);
}, []);
The same for me. Very weird issue.
so i installed the package, copy pasted code from this sandbox: https://codesandbox.io/s/rrlli?file=/src/App.js and none of the buttons appear, yes they appear in the DOM, but they are still invisible, even if i set display to block, set some height and width...still nothing.
The only difference between this sandbox and my code is react version, in sandbox it's 16 and i have a react 17 version. At this point i have a simple question does this library works with react 17?or am i doing something wrong?