AdeleD / react-dynamic-fields

A ReactJS component to add multiple input fields dynamically
7 stars 3 forks source link

Access values of fields #1

Open jmwyrwas opened 9 years ago

jmwyrwas commented 9 years ago

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.

naback commented 7 years ago

Did you figured it out, jmwyrwas? I'm having the same problem