docs: remove recently deleted props

This commit is contained in:
Corbin Crutchley
2023-09-03 01:37:46 -07:00
committed by Corbin Crutchley
parent 7980336d03
commit eea47f03dc
5 changed files with 68 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ function FieldInfo({ field }: { field: FieldApi<any, any> }) {
<>
{field.state.meta.touchedError ? (
<em>{field.state.meta.touchedError}</em>
) : null}{" "}
) : null}
{field.state.meta.isValidating ? "Validating..." : null}
</>
);
@@ -65,7 +65,12 @@ export default function App() {
return (
<>
<label htmlFor={field.name}>First Name:</label>
<input name={field.name} {...field.getInputProps()} />
<input
name={field.name}
value={field.state.value}
onBlur={field.handleBlur}
onChange={(e) => field.handleChange(e.target.value)}
/>
<FieldInfo field={field} />
</>
);
@@ -78,7 +83,12 @@ export default function App() {
children={(field) => (
<>
<label htmlFor={field.name}>Last Name:</label>
<input name={field.name} {...field.getInputProps()} />
<input
name={field.name}
value={field.state.value}
onBlur={field.handleBlur}
onChange={(e) => field.handleChange(e.target.value)}
/>
<FieldInfo field={field} />
</>
)}

View File

@@ -2,7 +2,8 @@
"extends": "../../../tsconfig.json",
"compilerOptions": {
"jsx": "react",
"noEmit": true
"noEmit": true,
"lib": ["DOM", "DOM.Iterable", "ES2020"]
},
"include": ["**/*.ts", "**/*.tsx", ".eslintrc.cjs", "rollup.config.js"]
}