MCPcopy Index your code
hub / github.com/react-component/form / componentWillMount

Function componentWillMount

examples/dynamic-fields.js:70–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 useInput: true,
69 };
70 componentWillMount() {
71 const { getFieldDecorator } = this.props.form;
72 this.nameDecorator = getFieldDecorator('name', {
73 initialValue: '',
74 rules: [{
75 required: true,
76 message: 'What\'s your name?',
77 }],
78 });
79 }
80 onSubmit = (e) => {
81 e.preventDefault();
82 this.props.form.validateFields((error, values) => {

Callers

nothing calls this directly

Calls 1

getFieldDecoratorFunction · 0.85

Tested by

no test coverage detected