Enable javascript in your browser for better experience. Need to know to enable it? Go here.
Last updated : Apr 02, 2025
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar. Understand more
Apr 2025
Adopt ?

我们将 React Hook Form 视为 Formik 的替代方案。由于默认使用非受控组件,它提供了显著更好的开箱即用的表现,特别是在大型表单上。React Hook Form 很好地和各种基于 schema 的验证库(比如Yup, Zod 等)进行了集成。此外 React Hook Form 提供了很大的灵活性,使其易于和现有代码库和其他库集成。你可以把 React Hook Form 和像shadcn或者AntD这样的外部受控组件库一起使用。凭借出色的性能、无缝集成和活跃的开发社区,它是构建大型表单或表单密集型应用的可靠选择。

Apr 2021
Assess ?

构建Web表单仍然是前端开发的长期挑战之一,尤其在使用React技术栈的时候。 我们有很多团队在使用React,他们也一直在使用Formik来简化这个过程。但是现在一些团队正在评估 React Hook Form 作为潜在的替代方法。 React Hooks在React Hook Form出现之前就已经存在,因此可以将它们作为一级概念: 该框架通过钩子将表单元素注册和跟踪为不受控制的组件,从而大大减少了重新渲染的需要。 它的大小和所需的样板代码数量也非常轻量级。

Published : Apr 13, 2021

Download the PDF

 

 

 

English | Português 

Sign up for the Technology Radar newsletter

 

 

Subscribe now

Visit our archive to read previous volumes