MCPcopy
hub / github.com/react-component/form / render

Method render

tests/getFieldProps.spec.js:13–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const Test = createForm({ withRef: true })(
12 class extends React.Component {
13 render() {
14 const { getFieldProps } = this.props.form;
15 return (
16 <div>
17 <input
18 {...getFieldProps('array[1]', {
19 rules: [{ required: true }],
20 })}
21 />
22 <input
23 {...getFieldProps('array[0]', {
24 rules: [{ required: true }],
25 })}
26 />
27 </div>
28 );
29 }
30 }
31 );
32

Callers

nothing calls this directly

Calls 1

getFieldPropsFunction · 0.85

Tested by

no test coverage detected