react-hook-form
chakra-ui
Our great sponsors
react-hook-form | chakra-ui | |
---|---|---|
208 | 343 | |
39,194 | 36,354 | |
1.8% | 1.3% | |
9.0 | 9.0 | |
5 days ago | about 22 hours ago | |
TypeScript | MDX | |
MIT License | MIT License |
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
-
How to send emails from your website using Twilio SendGrid
Now we need to install React Hook Form because that is the package we are going to use for building our form. We also need to install the package for SendGrid. cd into the sendgrid-contact-form folder and then run this command to install the packages:
-
React: A Mess That Shouldn't Exist In Web Development
Imagine someone unknowingly unleashing heavy computation on a component without useMemo. That computation will run on every component re-render. Not only that, The dependency array in your hooks (useEffect, useMemo, useCallback) are also checked in each re-render. It's like a double whammy for performance pitfalls! I know that you can avoid this by some technique like what react-hook-form done, but remember thats an extra complexity.
-
[React JS] I don't know a better way to handle Forms in React
But now, all those difficulties are gone since I found React Hook Form and zod.
- Squeezing more performance out of your Nextjs App
-
New client-side hooks coming to React 19
This will greatly simplify the handling of AJAX forms in React - like for instance for a search form. But again, this may not be enough to get rid of third-party libraries like React Hook Form, which does much more than just handle form submission (validation, side effects, etc).
-
How to Configure CORS in Node.js With Express
React Hook Form Documentation
-
Understanding React’s useFormState and useFormStatus Hooks
For these reasons, developers often avoid the heavy lifting by using libraries like Formik or React Hook Form. But consider this: what if we want our app to be as lean as possible without relying on external dependencies?
-
45 NPM Packages to Solve 16 React Problems
react-hook-form
-
The Ultimate Tech Stack for Building a Full-Stack MVP and Iterating Quickly
Forms are a big part of full-stack projects. In our experience, Zod and React Hook Form work great together and provide all the functionality one might need to create forms. In this combo, Zod provides schema validation (types, min/max bounds, lengths, enums, etc.) while React Hook Form gives a flexible API to interact with the form. With these two libraries, one can nest components that interact with the same form, perform different complex validations, and update the data on the fly. They make working with forms seem too easy.
-
Working with forms in SvelteKit coming from React
There are libraries for handling form submissions with builtin integrations for validations libraries, like react-hook-form with @hookform/resolvers for React, and we have superforms for SvelteKit, that handles validation with zod, they both are made for the same purpose.
chakra-ui
-
React Component Libraries
Official Website: https://chakra-ui.com/
-
Material UI vs. Chakra UI: Which One to Choose?
Discover Chakra UI: Chakra UI Documentation
- Tailwind Color Palette Generator
-
Minified React error #426
This error related to the ReactMarkdown component and the useDisclosure hook in the @chakra-ui/react.
-
Shoelace: A forward-thinking library of web components
We settled on Chakra (https://chakra-ui.com/). Although we also abandoned our ambitions of a Next.js migration, so... I guess it didn't really end up mattering all that much anyway.
-
33 React Libraries Every React Developer Should Have In Their Arsenal
4.chakra-ui
-
⚡Top GitHub Repositories for UI Components
🔍 Site ⭐ GitHub
-
Beyond the Basics: Exploring TailwindCSS and Linaria in Next.js - From Installation to Performance Optimization
Examples: radix-ui, chakra-ui, shadcn/ui, tailwind-ui.
-
Ask HN: Examples of best practice modern website design?
(I'm a frontend dev, but I came into the design side only later in my career, after having started as a full-stack programmer.)
I think this book is probably the single best resource I've seen on the topic: https://www.refactoringui.com/
It's a really easy-to-use format (one quick tip on each page, with clear examples).
It's from the people who made Tailwind, a CSS framework that's basically a reimagining of Bootcamp for the Javascript/component era.
Check out some of their templates: https://tailwindui.com/templates
These are lookalike "modern" designs that you can pay to use, or just draw inspiration from. Imitation == flattery and all that.
Along similar lines, check out the free Next.js templates: https://vercel.com/templates/next.js
If you want to build up from components instead, Tailwind offers a component library too: https://tailwindui.com/components
For React, I prefer the astoundingly good MUI framework (amazing components with lots of customizability, a good enough default look, and great documentation): https://mui.com/ If you end up going this route, using their Figma kit (https://mui.com/store/items/figma-react/) plus the Refactoring UI book from above should allow you to whip up a pretty standard-looking, "pretty enough" design in very little time. And then implementing it using the actual MUI lib would just take a few days.
There's also Ant Design: https://ant.design/
And Chakra UI: https://chakra-ui.com/
-----------
For more theoretical stuff (i.e., less visual but still very valuable), the UX research group Nielsen Norman still has a treasure trove of valuable advice: https://www.nngroup.com/articles/top-ten-guidelines-for-home...
You should know the basics of accessibility (beyond general usability, this alos means alt text, header levels, contrast ratios, readability, screen readers, keyboard navigation, special considerations for the hard of sight and hearing, etc.): https://www.w3.org/WAI/standards-guidelines/wcag/ or at least use an easy checklist tool like Microsoft's WCAG analyzer: https://accessibilityinsights.io/
- Ask HN: What's your favorite UI library?
What are some alternatives?
mantine - A fully featured React components library
antd - An enterprise-class UI design language and React UI library
react-jsonschema-form - A React component for building Web forms from JSON Schema.
styled-components - Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
formik - Build forms in React, without the tears 😭 [Moved to: https://github.com/jaredpalmer/formik]
react-final-form - 🏁 High performance subscription-based form state management for React
Tailwind CSS - A utility-first CSS framework for rapid UI development.
react-star-rating-input - React.js components for entering 0—N stars (N is 5 by default), or displaying 0—N stars
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
grommet - a react-based framework that provides accessibility, modularity, responsiveness, and theming in a tidy package
rebass - :atom_symbol: React primitive UI components built with styled-system.