-
Notifications
You must be signed in to change notification settings - Fork 577
Open
Description
the document:
import { useFieldValidation } from '@json-render/react';
function TextField({ props }) {
const { value, setValue, errors, validate } = useFieldValidation(
props.valuePath,
props.checks
);
return (
<div>
<label>{props.label}</label>
<input
value={value || ''}
onChange={(e) => setValue(e.target.value)}
onBlur={() => validate()}
/>
{errors.map((error, i) => (
<p key={i} className="text-red-500 text-sm">{error}</p>
))}
</div>
);
}but i got error, and i reviewed the type,there is no 'value'、'setValue'

and i want to use form validation,do I need to make any configuration for the catalog?
I would like to know on what basis LLM generates the verification conditions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels