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 1212</p >
1313
1414<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>
1616</p >
1717
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.
2121- 📦 ** Pretty Small** : [ ![ NPM Size] ( https://img.shields.io/bundlephobia/minzip/typed-react-form )] ( https://bundlephobia.com/result?p=typed-react-form )
2222
2323## Install
Original file line number Diff line number Diff line change 44- Require index for array fields
55- Field on blur
66- 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)`
4646 }
4747` ;
4848```
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
55aux_links :
66 " GitHub " :
77 - " https://github.com/CodeStix/typed-react-form"
8+ " NPM " :
9+ - " https://www.npmjs.com/package/typed-react-form"
810
911aux_links_new_tab : true
1012
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ yarn add typed-react-form
1919
2020This library works with both ** Javascript** and ** Typescript** . Typescript is certainly preferred because of the enforced type-checking!
2121
22+ ** Make sure to restart your project after installing. (restart ` react-scripts ` )**
23+
2224## Step 2: Creating a form
2325
2426### Using the ` useForm ` hook
You can’t perform that action at this time.
0 commit comments