Web Forms with React: Build Robust and Scalable Forms with React Hook Form
暫譯: 使用 React 的網頁表單:利用 React Hook Form 建立穩健且可擴展的表單
Rehman, Usman Abdur
商品描述
Set up web forms from scratch using the most popular React form library in use today, React Hook Form. This book is a succinct and practical guide to building robust, scalable and reusable forms. From social media and YouTube video posts, to product listings on e-commerce sites, most information on the web is entered through forms. In this book, you'll learn how to properly handle forms in React, how to scale them, and how to handle validations, etc.
There are many ways to handle forms in React so it's good practice to have a standard in place. This book will show you how to do so. Once in place, you'll be able to code powerful, bug-free forms. Additionally, the book highlights the importance React Hook Form plays in scalability when designing forms. You'll look at how to handle recurring features, such as password fields and profile sections so they can be easily reused across the application where they are required. Validations are also crucial in building forms.
You'll also see how React Hook Form provides a nice interface for hooking up validations by using either standard native validations or by using a third-party validation library like Yup or Zod. When completed, Web Forms with React will provide you the knowledge and confidence to build strong, and reusable web forms in React from the ground up.
What You Will Learn
- Explore Web Forms standards and best practices
- Understand the importance of scalability, robustness and reusability when making forms
- Set the standard on how to handle and set up forms using React
- Add complex validations in React forms
Who This Book Is For
Web developers new to React with some prior knowledge of JavaScript and TypeScript. React developers who have experience in building forms but are trying to find a new performant and scalable alternative.
商品描述(中文翻譯)
建立網頁表單從零開始,使用當前最受歡迎的 React 表單庫 React Hook Form。本書是一本簡潔且實用的指南,旨在構建穩健、可擴展和可重用的表單。從社交媒體和 YouTube 影片發佈,到電子商務網站上的產品列表,網路上的大多數資訊都是透過表單輸入的。在本書中,您將學習如何在 React 中正確處理表單、如何擴展它們,以及如何處理驗證等。
在 React 中處理表單有很多方法,因此建立一個標準是良好的做法。本書將向您展示如何做到這一點。一旦建立標準,您將能夠編寫強大且無錯誤的表單。此外,本書強調了 React Hook Form 在設計表單時對可擴展性的重要性。您將學習如何處理重複出現的功能,例如密碼欄位和個人資料區域,以便在應用程式中需要的地方輕鬆重用。驗證在構建表單中也至關重要。
您還將看到 React Hook Form 如何提供良好的介面來連接驗證,無論是使用標準的原生驗證,還是使用像 Yup 或 Zod 這樣的第三方驗證庫。完成後,《Web Forms with React》將為您提供從基礎開始構建強大且可重用的 React 網頁表單的知識和信心。
您將學到的內容:
- 探索網頁表單的標準和最佳實踐
- 理解在製作表單時可擴展性、穩健性和可重用性的重要性
- 設定如何使用 React 處理和設置表單的標準
- 在 React 表單中添加複雜的驗證
本書適合對象:
對 React 新手的網頁開發者,具備一些 JavaScript 和 TypeScript 的基礎知識。具有構建表單經驗的 React 開發者,正在尋找新的高效且可擴展的替代方案。
作者簡介
Usman Abdur Rehman is a Frontend Tech lead for a US Based Healthcare Company with over four years of professional experience. As a self-taught developer, Rehman studied everything related to programming from YouTube videos, tutorials, blogs, and books. Since gaining his first developer role, Usman has been motivated to give back to the community by teaching coding.
作者簡介(中文翻譯)
Usman Abdur Rehman 是一家美國醫療公司的前端技術負責人,擁有超過四年的專業經驗。作為一名自學的開發者,Rehman 從 YouTube 影片、教程、部落格和書籍中學習了與程式設計相關的所有知識。自從獲得第一個開發者職位以來,Usman 一直受到激勵,致力於通過教授程式設計來回饋社群。