# 行内排列的表单 - order: 1 --- ````jsx var Form = antd.Form; var Checkbox = antd.Checkbox; var Button = antd.Button; var Demo = React.createClass({ mixins: [Form.ValueMixin], getInitialState() { return { formData: { userName: undefined, password: undefined, agreement: undefined, } }; }, handleSubmit(e) { e.preventDefault(); console.log(this.state.formData); }, render() { var formData = this.state.formData; return (
); } }); ReactDOM.render(, document.getElementById('components-form-demo-inline-form')); ````