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

MorphReplace with more than 2 Icons #29

Open
JonathanJumper opened this issue Jun 15, 2018 · 0 comments
Open

MorphReplace with more than 2 Icons #29

JonathanJumper opened this issue Jun 15, 2018 · 0 comments

Comments

@JonathanJumper
Copy link

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

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

1 participant