MorphReplace with more than 2 Icons
JonathanJumper opened this issue · comments
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