Redundant code in electronjs

I am building an offline app that doesn’t need to an internet connection. I created page.html with a lot of buttons. they are the same, they look like redundant code because I need 10 buttons and it doesn’t make sense repeat 10 times to create 10 buttons. what the best method to do that? Is to use normal javascript looping or in the electron app renderer process has a method for dealing with it?