I have to change icon type play/pause conditionally, passing it via props.
In such case should I use the ternary expression in order to pass correct prop?
<my-icon :icon="!isPlaying ? 'play' : 'pause'"></my-icon>
Or it would be better to use v-show to achieve the best performance?
<my-icon v-show='!isPlaying' :icon='play'></my-icon>
<my-icon v-show='isPlaying' :icon='pause'></my-icon>
Thank you in advance!