dynamically create component upon click of button

Update:

I was able to get dynamic Decks with sub-components working. I first created a normal static Deck as well as Templates underneath the deck that had some “dummy” context rules and then copied the XML and with a custom component similar to this method for tables constructed a dynamic string for the component. I didn’t need to create sub components specifically, I just included them in the XML string for the custom component along with the deck the same way it was outlined in the XML on the example static components on the page.