react-hook-form
react-jsonschema-form

react-hook-form | react-jsonschema-form | |
---|---|---|
247 | 32 | |
43,447 | 15,015 | |
0.6% | 1.1% | |
9.2 | 9.2 | |
4 days ago | 9 days ago | |
TypeScript | TypeScript | |
MIT License | 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-hook-form
- React’s Four Horsemen of the Frontendpocalypse
-
How to Use Drizzle ORM with PostgreSQL in Next.js 15
We’ll be using Zod and drizzle-zod for schema validations in forms. Zod is already packaged on the demo application along withReact Hook Form and Zod resolver for React Hook Form. So, go ahead and install drizzle-zod. And also drizzle-seed that is Drizzle's handy package for seeding in development:
-
How to use Yup validation with React Hook Form
Yup provides you with a declarative way to validate form data in JavaScript apps. It has a set of features which make it a flexible and efficient choice for handling validation in React, React hook form, and other frameworks.
-
Show HN: Nue – Apps lighter than a React button
"Instant" can mean different things to different people.
I have an HTMX/Flask/Bootstrap app that feels instant for most requests on the LAN, except when it doesn't.
Often React apps are pretty snappy, but if you want to do complex data validation on controlled forms, where the state updates for every keystroke, it can drag you down. There are good frameworks for doing uncontrolled forms in a disciplined way
https://react-hook-form.com/
but it's another thing to add to your bundle. React is also not fast enough to do animations so you have a lot of .show/.hide (or display: none) CSS has facilities to do transitions and animations that are pretty good but I always find it a little nervewracking for a JS application to have state in React state variables and any other kind of state. Some ImGUI frameworks have components that look superficially like React components but are fast enough to animate every frame, which makes me feel like I am in control and get the animation to look exactly what I want.
-
How To Handle Form Data In React JS
Leverage Libraries: Sometimes, the complexity of forms might require more advanced solutions. Libraries like Formik and React Hook Form provide additional tools and patterns that can simplify the process.
-
Top 20 Modern React Libraries To Supercharge Your Next Big Project
Resource: React Hook Form Documentation
-
A Complete Guide to Next.js Authentication
We will use NextAuth later in the article, so install that also.
-
10 Awesome NextJS Libraries That Make Coding Easier
React Hook Form is a lightweight and fast form validation library that integrates well with Next.js.
-
Easily Sync Your Subtitles with React, RHF and shadcn/ui
We'll use React with Vite, shadcn/ui (a collection of reusable components I have been wanting to try for a while), React Hook Form for form management, and Zod for schema-based form validation.
-
Next.js form validation on the client and server with Zod
You want to do all this without writing a bunch of duplicate code and, in this case, without a third-party form library like React Hook Form.
react-jsonschema-form
-
Using GPT for natural language querying
Even though it’s quite amusing, this is an edge case that we’d likely need to support if aiming for production use. The most common approaches are to add more validations and retries to our application’s code, improve the prompt to direct GPT, or try different temperatures of the model. ## **Use case - build dynamic forms in React** Another common use case that we can try to automate is building custom forms dynamically. Many applications, such as surveys, custom forms etc., rely on this feature to gain feedback from its candidates, customers or potential leads. GPT makes it incredibly easy to build a tool that allows a regular user to create such a form by providing natural language input. Let’s use a library called [react-jsonschema-form](https://rjsf-team.github.io/react-jsonschema-form/docs/). It’s a React-based library that generates forms based on a JSON definition. It also contains an extensive schema definition that such JSONs can be validated against. We can leverage the fact that GPT was trained on a large dataset that also includes definitions of commonly used JSON schemas. That means we don’t have to provide the exact schema, and we can refer to it in our prompt by name. Let’s create a prompt that: 1. Specifies that we would like to use the schema of react-jsonschema-form 2. Include the user's definition of the ideal form 3. Will specify some additional criteria for the output (i.e. make sure that we only get a JSON as a response)
-
Show HN: A no-code framework for JSON
Thanks for your feedback !
It does not rely on JSON schema at all, the idea was to build a representation that binds together data structure, views and behavior in a self-contained way (like .xlsx does).
There are a few tools that do enable to link JSON schema to views, like react-jsonschema-form (https://rjsf-team.github.io/react-jsonschema-form/) but you need to manage them separately, and they usually do not propose a way to add the fields "methods" (which was the feature I found interesting to make "dynamic" spreadsheets).
That being said, I think the framework should clearly propose an export from Schema to JSON Schema or Yaml at some point, just as you should be able to start building your Schema by importing a JSON Schema (and although there might be some gray zones between the 2).
No, sorry, it's not yet open-source, and currently there are some strong links between Document and Workspace (Links, Files...) that would need to be more "abstracted" to make the builder an independent component. But I hear you point ! (and all the comments in this thread are raising the same ! :) )
-
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
What are some alternatives?
JSONForms - Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.
formily - 📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
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.
