Unless I'm completely missing something, I'm not sure how the input field values should be accessed. If I do this.refs.dynamicFields.state (where dynamicFields is the DynamicFieldsAddition) I can get the array of fields that were added, but how would I then access each individual input value? Also, I know accessing a child component's state is a bad practice.
Unless I'm completely missing something, I'm not sure how the input field values should be accessed. If I do
this.refs.dynamicFields.state
(wheredynamicFields
is theDynamicFieldsAddition
) I can get the array of fields that were added, but how would I then access each individual input value? Also, I know accessing a child component's state is a bad practice.