I create form, I have several TextField, DropDownMenu material-ui components included, question is how I can collect all data from all TextFields, DropDownMenus in one obj and s
In 2020 for TextField, via functional components:
const Content = () => { ... const textFieldRef = useRef(); const readTextFieldValue = () => { console.log(textFieldRef.current.value) } ... return( ... ... ) }
Note that this isn't complete code.