Skip to content

Commit 4b6dc9a

Browse files
authored
docs: Update example (#23)
* update example * rename rest example
1 parent 1233e97 commit 4b6dc9a

File tree

11 files changed

+6
-6
lines changed

11 files changed

+6
-6
lines changed

examples/StateForm-basic.tsx renamed to examples/basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Form, { Field } from '../src/';
2+
import Form, { Field } from '../src';
33
import Input from './components/Input';
44

55

examples/StateForm-notContainForm.tsx renamed to examples/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Form, { Field, useForm } from '../src/';
2+
import Form, { Field, useForm } from '../src';
33
import Input from './components/Input';
44

55

@@ -16,7 +16,7 @@ export default () => {
1616
return e;
1717
});
1818
}}>
19-
<Form notContainForm form={form}>
19+
<Form component={false} form={form}>
2020
<Field name="username">
2121
<Input placeholder="Username" />
2222
</Field>
File renamed without changes.
File renamed without changes.

examples/StateForm-list.tsx renamed to examples/list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/prop-types */
22

33
import React from 'react';
4-
import Form from '../src/';
4+
import Form from '../src';
55
import Input from './components/Input';
66
import LabelField from './components/LabelField';
77

examples/StateForm-redux.tsx renamed to examples/redux.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from 'react';
44
import { connect, Provider } from 'react-redux';
55
import { createStore } from 'redux';
6-
import Form from '../src/';
6+
import Form from '../src';
77
import Input from './components/Input';
88
import LabelField from './components/LabelField';
99

File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/StateForm-validate-perf.tsx renamed to examples/validate-perf.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/prop-types */
22

33
import React from 'react';
4-
import Form, { Field, FormInstance } from '../src/';
4+
import Form, { Field, FormInstance } from '../src';
55
import Input from './components/Input';
66
import LabelField from './components/LabelField';
77
import { ValidateMessages } from '../src/interface';

0 commit comments

Comments
 (0)