表单作为用户交互中常见形式,值的验证/状态管理是个问题。 在react技术栈下中React Hook Form包名: react-hook-form功能强大,对于复杂表单管理,是个不错的方案。 为了能灵活恰当的使用它,这里把常用场景/使用/容易忽略的点/核心原理做一个总结,如有疏漏,请斧正。
3月 31, 2025
Forms are a common interaction method in user interfaces, and validating/managing their state can be challenging. In the React ecosystem, React Hook Form package name: react-hook-form is a powerful solution for complex form management. To use it flexibly and appropriately, this guide summarizes common scenarios, usage patterns, easily overlooked points, and core principles. Please provide feedback if there are any omissions.
3月 31, 2025
click-to-component 是一个react组件,接入后可以实现一键跳转到源码,很大程度提升了开发效率。这里我尝试阅读源码,并记录一些关键点。
12月 31, 2024
Click-to-component is a React component that enables one-click navigation to source code, significantly improving development efficiency. Here I attempt to read the source code and document key points. Source Code Structure The project uses pnpm as the package management tool, with pnpm workspace managing multiple packages.
12月 31, 2024
实际开发中,找代码的操作往往是这样,浏览器中拷贝样式或者文案,然后到IDE中搜索。有没有办法直接点击页面任意元素就直接跳转到IDE中打开对应代码文件呢,click-to-component就是这样一个工具。
12月 26, 2024
In actual development, finding code often involves copying styles or text from the browser and searching in the IDE. Can I directly click any element on the page and jump to open the corresponding code file in the IDE? click-to-component is such a tool.
12月 26, 2024
In web page interactions, forms are common elements. For form validation/management, react-hook-form is a commonly used and excellent helper library. For example, useFieldArray is used for managing array values, and formContext is used for complex nested component forms. Understanding these usage patterns helps you use it more effectively.
12月 6, 2024
WEB页面交互,表单是常见的元素,针对表单的校验/管理,react-hook-form是个常用的不错的辅助库。比如其中对于数组值的管理用到的useFieldArray,再比如嵌套复杂的组件表单用到的formContext。了解这些用法,可以更好的去使用它。
12月 6, 2024
现象 使用redux-logger的项目中,在使用webpack生产模式打包后,还是有redux-logger的存在。
9月 14, 2024
本文是作者对monaco-editor使用的介绍,包括monaco-editor使用的优势、实现细节、相关资料等,这些步骤可以帮助作者提高monaco-editor使用的效率。
7月 9, 2023