Best way for dynamic inputs for reactive data

Is there a recommended way to use dynamic amount of text inputs? Ie, user clicks a “new input field” button and a new form-group appears with text input and a select box? then this value can be used/saved into a reactive-var and later used?

Ive tried creating a new reactive-var, then onRender doing myReactiveVar.set({id: ‘testId’, name:‘testName’});
Then in the HTML doing something similar to:

{{#each reactiveVar}}

{{/each}}

where reactiveVar returns the reactive-variable, which does work and it populates the list i need… but how would i go about saving the data entered into the n-numbered inputs?