Render multiple button component from a map

Hmm, it's not possible to create Retool components using Javascript, but you can maybe use the list view component with a dynamic length. Would something like that be helpful for your use case?

You can also dynamically show/hide components using Javascript, but they'd need to already be present on the canvas.