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

Method render

tests/dynamic-binding.spec.js:53–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 })(
52 class extends React.Component {
53 render() {
54 const { form, mode } = this.props;
55 const { getFieldDecorator } = form;
56 return (
57 <form>
58 <span>text content</span>
59 {mode ? getFieldDecorator('input1')(<input id="text1" />) : null}
60 <span>text content</span>
61 <span>text content</span>
62 <span>text content</span>
63 {mode ? getFieldDecorator('input2')(<input id="text2" />) : null}
64 <span>text content</span>
65 </form>
66 );
67 }
68 }
69 );
70 const wrapper = mount(<Test mode />);

Callers

nothing calls this directly

Calls 1

getFieldDecoratorFunction · 0.85

Tested by

no test coverage detected