Skip to content

Commit 2433464

Browse files
committed
2 parents 0ef264a + 5eaa0e0 commit 2433464

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
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

Todo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
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

docs/Troubleshooting.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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`)

docs/_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ remote_theme: pmarsceill/just-the-docs
55
aux_links:
66
"GitHub":
77
- "https://github.com/CodeStix/typed-react-form"
8+
"NPM":
9+
- "https://www.npmjs.com/package/typed-react-form"
810

911
aux_links_new_tab: true
1012

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ yarn add typed-react-form
1919

2020
This 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

0 commit comments

Comments
 (0)