react-jsonschema-form
data-driven-forms
react-jsonschema-form | data-driven-forms | |
---|---|---|
30 | 4 | |
13,650 | 287 | |
0.6% | 0.0% | |
9.0 | 8.0 | |
6 days ago | 21 days ago | |
TypeScript | JavaScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-jsonschema-form
-
Framework Interoperable Component Libraries Using Lit Web Components.
I've been very passionate about a project called react-jsonschema-form (github, editor). I personally hate writing forms, and love the idea of serializable components, schema, validation all in one. I've always wanted an alternative to this project that offered an alternative to react, and possibly the ability to render a schema form to static HTML (like ssg).
-
6 Reasons why JSON Schema is worth your time
See their playground app for examples of creating schema driven forms in no time.
-
Making a web UI from Haskell/Servant
I've tried with https://github.com/rjsf-team/react-jsonschema-form ,but the performance is poor when dealing with deep nested form with many inputs.
-
Can I build single-page apps with core, like react pages without refreshing the site?
For example, I had a requirement for my team recently to be able to build dynamic form UIs, based off a JSON schema. There are heaps of javscript frameworks for this task e.g. react-jsonschema-form, but nothing in nuget or Blazor is going to help there. So you'd have to write all the logic yourself.
-
Why do React frameworks not have testing as a first class concern in their documentation?
React-json-schema form has plenty of tests, using... it looks like react-dom/test-utils
-
Show HN: A Database Generator for EVM with CRUD and On-Chain Indexing
https://github.com/rjsf-team/react-jsonschema-form
YAML-LD (application/ld+yaml) round-trips to JSON-LD (application/ld+json) which round trips to RDF; so W3C Linked Data Signatures / W3C Verified Claims cryptographic signatures verify regardless of graph representation.
YAML-LD > 3.1 JSON vs YAML comparison: https://json-ld.github.io/yaml-ld/spec/#json-vs-yaml
-
Server Sent UI Schema Driven UIs
React Json Schema Form: https://github.com/rjsf-team/react-jsonschema-form
- How to build forms using the schema-first approach in React
-
How I made my first successful open-source project
The most popular package it is being used in currently is react-jsonschema-form, which currently has 11,876 stars on GitHub
-
Are you building custom input components or build them from scratch in every project?
When I used react I used react-jsonschema-form which was awesome. Instead of writing inputs and forms I wrote the shape of that form in schema (or better yet, had my server send the shape of the form from the endpoint so that the front end required no coding). Unfortunately the vue equivalents never got ported to vue3 (and seem abandoned), so I wrote my own. Now I write stuff like:
data-driven-forms
-
Need to create a form component based on API response
Okay, what you describes called data-driven form, which means you form schema reside somewhere else. I strongly suggest using 3rd party framework such as data-driven form. It will make your life much easier.
-
Is it okay to use a json file set what fields show up in a form?
A longer answer would be yes it is ok BUT what you are doing is coming up with a Domain Specific Language (DSL) for building forms which can be an undertaking both to author and to communicate with other developers. I would suggest using React and javascript to manage the fields if possible and if not look into a library that takes on the task of making a DSL and provides documentation for it (to help communicate to other developers). I found this after a quick search https://data-driven-forms.org/
-
Introducing Material-UI component mapper for Data Driven Forms
Data Driven Forms is a open source React library that uses a data driven approach for building React forms. This approach is based on rendering JSON schemas as React forms with all needed functionality provided by the renderer. It includes features such as validation, conditional fields and many more. It helps web developers to write forms much quicker, simpler and to achieve a consistency across the whole application.
What are some alternatives?
JSONForms - Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.
react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native)
formik - Build forms in React, without the tears 😭 [Moved to: https://github.com/jaredpalmer/formik]
SurveyJS - Free Open-Source JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout that lets you load and run multiple web forms, or build your own self-hosted form management system, retaining all sensitive data on your servers. You have total freedom of choice as to the backend, because any server + database combination is fully compatible.
formily - 📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
react-final-form - 🏁 High performance subscription-based form state management for React
formsy-react - A form input builder and validator for React JS