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.

MorphReplace with more than 2 Icons #29

@JonathanJumper

Description

@JonathanJumper

Hey,

I've got it working with two icons, but as soon as I add more, it stops working
I have an array of jsx elements and a counter in the state, hoping to use it as a loading indicator:

<MorphReplace width={size} height={size}> { icons[this.state.counter % icons.length] } </MorphReplace>

Any help with this?
thanks in advance

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