I tried feeding the share buttons a React component (a custom button) rather than just the string name of a html tag.
It works perfectly. props get passed down and the component gets rendered nicely.
However react raised a PropType warning, since the validation requires a string.
warning.js:45 Warning: Failed propType: Invalid prop `element` of type `function` supplied to `FacebookButton`, expected `string`.
This should be easy to fix by adding function to the possible PropTypes.
I tried feeding the share buttons a React component (a custom button) rather than just the string name of a html tag. It works perfectly. props get passed down and the component gets rendered nicely.
However react raised a PropType warning, since the validation requires a string.
This should be easy to fix by adding function to the possible PropTypes.