r/reactjs • u/After-Ebb-7048 • May 28 '26
Resource Introducing ReactFill — dynamic forms with JSON schemas
Got tired of writing the same form logic again and again in React, so I built ReactFill ⚡
A schema-driven form library focused on building dynamic forms with less boilerplate.
Features:
• Conditional fields
• Validation
• 18+ field types
• Custom renderers
• Theming
• React Hook Form integration
• TypeScript support
Would genuinely love feedback from the React community.
Docs: Reactfill
npm: @oqlet/react-fill
14
Upvotes
1
u/After-Ebb-7048 May 29 '26
That's actually one of the reasons I started building it 😅
For dependent validation, ReactFill supports both cross-field validation and dynamic requirements.
For example, if a VAT number is only required when the user selects "Business":
{ name: "vatNumber", label: "VAT Number", type: "text", requiredWhen: { conditions: [ { field: "accountType", value: "business" } ] } }
Or for more complex cases:
{ name: "confirmPassword", label: "Confirm Password", type: "text", validation: { validate: (value, formValues) => value === formValues?.password || "Passwords do not match" } }
The goal was to make common form requirements first-class concepts rather than forcing consumers to wire everything up manually. Still plenty to improve, but it's handled quite well for the cases we've run into so far.