I am using react-share with react 15.6 version. and getting the following error
TypeError: react__WEBPACK_IMPORTED_MODULE_9___default.a.forwardRef is not a function
Here is my Code Snippet
import {WhatsappShareButton, WhatsappIcon} from 'react-share';
<WhatsappShareButton
url={url}
title={title}
children={<WhatsappIcon
size={32}
round />} />
Any one who is using react share getting same error or anyone find the solution?
According to the README it should be compatible:
However, it is not uncommon in the
npm
universe that such incompatibilities occur, especially if you are not upgrading all your dependencies consistently.In those cases you should however search for the existing GitHub issue or create one, instead of an SO question, because once they are resolved, they serve little purpose here:
The solution you are looking for is to downgrade to
react-share
3.0.0 until the issue is being resolved or upgrade toreact
16.