react-svg-morph icon indicating copy to clipboard operation
react-svg-morph copied to clipboard

Using react-svg-morph with react-icons

Open nasushkov opened this issue 8 years ago • 3 comments

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.

nasushkov avatar Dec 30 '16 21:12 nasushkov

Same error..

aight8 avatar Jan 04 '17 07:01 aight8

react-icons have changed, so I think that they will not work because a use of the react context #2

gorangajic avatar Jan 13 '17 14:01 gorangajic

Hi! Any news? Is there any recommended tuple of versions of both packages that work together?

olegstepura avatar Jan 25 '17 14:01 olegstepura