Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Using react-svg-morph with react-icons #22

Open
nasushkov opened this issue Dec 30, 2016 · 3 comments
Open

Using react-svg-morph with react-icons #22

nasushkov opened this issue Dec 30, 2016 · 3 comments

Comments

@nasushkov
Copy link

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.

@aight8
Copy link

aight8 commented Jan 4, 2017

Same error..

@gorangajic
Copy link
Owner

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

@olegstepura
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants