File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 12
12
</p >
13
13
14
14
<p align =" center " width =" 100% " >
15
- <strong>A completely type-checked form builder for React</strong>
15
+ <strong>A completely type-checked form builder for React with Typescript </strong>
16
16
</p >
17
17
18
- - ✔️ ** Type-checked** : Make less errors, this library was built for React with Typescript.
19
- - 🤔 ** Simple** : An intuitive and easy to understand api. Well [ documented] ( https://codestix.github.io/typed-react-form/ ) too, also with JSDoc .
20
- - :fire : ** Fast** : It only rerenders the fields that change if used correctly. This allows you to create huge forms.
18
+ - ✔️ ** Type-checked** : Make less errors, even field names are strongly typed.
19
+ - 🤔 ** Simple** : A well [ documented] ( https://codestix.github.io/typed-react-form/ ) , intuitive and easy to understand api .
20
+ - :fire : ** Fast** : Only rerenders the fields that change if used correctly. This allows you to create huge forms.
21
21
- 📦 ** Pretty Small** : [ ![ NPM Size] ( https://img.shields.io/bundlephobia/minzip/typed-react-form )] ( https://bundlephobia.com/result?p=typed-react-form )
22
22
23
23
## Install
Original file line number Diff line number Diff line change 4
4
- Require index for array fields
5
5
- Field on blur
6
6
- Use React.forwardRef instead of innerRef on Field/FieldError
7
+ - Rename ` FormField ` -> ` FieldInfo ` & better documentation on passed Field props
Original file line number Diff line number Diff line change @@ -46,3 +46,9 @@ const StyledCustomInput: typeof CustomInput = styled(CustomInput)`
46
46
}
47
47
` ;
48
48
```
49
+
50
+ ---
51
+
52
+ ## Element type is invalid: expected a string (for built-in components) or a class/function but got: undefined
53
+
54
+ This sometimes happens after installing this package. Restart your project to fix it. (restart ` react-scripts ` )
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ remote_theme: pmarsceill/just-the-docs
5
5
aux_links :
6
6
" GitHub " :
7
7
- " https://github.com/CodeStix/typed-react-form"
8
+ " NPM " :
9
+ - " https://www.npmjs.com/package/typed-react-form"
8
10
9
11
aux_links_new_tab : true
10
12
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ yarn add typed-react-form
19
19
20
20
This library works with both ** Javascript** and ** Typescript** . Typescript is certainly preferred because of the enforced type-checking!
21
21
22
+ ** Make sure to restart your project after installing. (restart ` react-scripts ` )**
23
+
22
24
## Step 2: Creating a form
23
25
24
26
### Using the ` useForm ` hook
You can’t perform that action at this time.
0 commit comments