react-svg-morph
react-svg-morph copied to clipboard
Using react-svg-morph with react-icons
Hi, I have a problem making these two modules work together. I use pretty basic, that goes like this:
const MobileIcon = showMenu ? ChevronLeft : Menu
return (
<MorphReplace>
<MobileIcon/>
</MorphReplace>
)
There is an error in renderToJsonMethod in particular this part fails with undefined render:
var instance = new Component(element.props);
res.name = Component.name;
children = instance.render();
I use the latest versions of both libraries.
Same error..
react-icons have changed, so I think that they will not work because a use of the react context #2
Hi! Any news? Is there any recommended tuple of versions of both packages that work together?