How get data from material-ui TextField, DropDownMenu components?

后端 未结 10 1934
遥遥无期
遥遥无期 2021-01-31 01:13

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

10条回答
  •  死守一世寂寞
    2021-01-31 01:41

    class Content extends React.Component {
        render() {
            return (
                 this.input = input} />
            );
        }
    
        _doSomethingWithData() {
            let inputValue =  this.input.getValue();
        }
    }
    

提交回复
热议问题