0

Below is a Vue app I wrote to draw a Sierpinski Triangle given n iterations, which can be incremented/decremented via a HTML input control. I was wondering if there were any ways this code could be optimized. Thank you!
HTML:
<div id='app'>
<input type='number' v-model='n' min='0' max='10' />
<...