Closed BerndSchrooten closed 1 year ago
By not setting ind to zero, every svg component gets a different key on each render even when the component does not need to be updated. This means the whole svg is discarded by React and mounted again on each render which is costly.
@matc4 can you have a look at this?
By not setting ind to zero, every svg component gets a different key on each render even when the component does not need to be updated. This means the whole svg is discarded by React and mounted again on each render which is costly.