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
10
u/vanakenm May 28 '26 edited May 28 '26
Interesting.
What you did is define a DSL to describe forms - ie your proposal is for me instead of writing react code, to write JSON. If you want ideas about how this works and/or the limitation you may want to have a look at the ODK ecosystem (doing this but with a Excel based "DSL"). The general issue is that we do have good tooling around JavaScript/TypeScript/React code, not so much around (specific) JSON DSLs.
While i've been tempted to do the same several time, my feeling about why it may "not work" (as in: not be as useful as it could in real life settings) is that you generally want customization - fields, colors, layout, blur actions, etc, etc, etc and that past a certain threshold, customizing something built via a DSL become as or more complex than coding it.
I'm clearly bookmarking this as it may work for very "down to earth/CRUD cases" (internal admin tools, etc).
2
u/Vis_et_Honor May 28 '26
This is really cool. I will check it out this weekend.
2
u/ulimn May 29 '26
Is this like RJSF?
2
u/Ok_Drive6309 Jun 04 '26
Hey! Quick question, is there any guard against circular visibleWhen dependencies (e.g. two fieldArrays watching each other)? just wondering if this case is already handled or something planned! Thx
3
u/[deleted] May 28 '26
[removed] — view removed comment
2
u/[deleted] May 29 '26
[removed] — view removed comment