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

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

@nasushkov

Description

@nasushkov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions