کتاب توسعه اپلیکیشن‌های وب مقیاس‌پذیر با React Hooks اثر  Daniel Bugl

عنوان:

Learn React Hooks

نویسنده:

Daniel Bugl

انتشارات:

Packt Publishing

تاریخ انتشار:

2019

حجم:

4.3MB

دانلود

معرفی کتاب:" توسعه اپلیکیشن‌های وب مقیاس‌پذیر با React Hooks "

توضیح کتاب:

React Hooks، نحوه‌ی توسعه برنامه‌های React را متحول کرده‌اند. آن‌ها به توسعه‌دهندگان اجازه می‌دهند بدون نیاز به کلاس‌ها، برنامه‌هایی مدرن، خوانا و قابل نگهداری بسازند. این کتاب، روشی گام‌به‌گام برای استفاده از هوک‌ها در ساخت اپلیکیشن‌های پیچیده و مقیاس‌پذیر ارائه می‌دهد.

با آموزش‌هایی از مباحث پایه‌ای تا پیشرفته، خواهید آموخت چگونه با استفاده از useState، useEffect، Context API و Suspense برنامه‌هایی حرفه‌ای ایجاد کنید. همچنین تکنیک‌هایی برای مهاجرت از Redux و MobX به هوک‌ها را یاد می‌گیرید.

نکات کلیدی:

  • مهاجرت آسان از Redux و MobX به React Hooks
  • ادغام هوک‌ها با Context API و Suspense
  • ساخت رابط‌های کاربری پیچیده با کدی تمیز و خوانا
  • ساخت هوک‌های سفارشی برای نیازهای خاص پروژه

آنچه در این کتاب می‌آموزید:

  • درک اصول پایه‌ای و پیشرفته‌ی React Hooks
  • توسعه اپلیکیشن‌های مدرن و مقیاس‌پذیر با استفاده از هوک‌ها
  • ایجاد هوک‌های سفارشی و تست‌پذیر
  • ادغام هوک‌ها با کتابخانه‌های مدیریت وضعیت مانند Redux و MobX
  • refactor پروژه‌های کلاس‌محور به کامپوننت‌های تابعی مدرن

مخاطبان کتاب:

این کتاب مناسب برنامه‌نویسان React است که به دنبال یادگیری عمیق‌تر React Hooks و توسعه‌ی پروژه‌های قابل نگهداری و مقیاس‌پذیر هستند. اگر به‌دنبال گذار از الگوهای قدیمی کلاس‌محور یا یادگیری تکنیک‌های مدرن توسعه React هستید، این کتاب برای شماست.

فهرست مطالب

  • Title Page
  • Copyright and Credits
  • Dedication
  • About Packt
  • Foreword
  • Contributors
  • Preface
  • Who this book is for
  • What this book covers
  • To get the most out of this book
  • Get in touch
  • Section 1: Introduction to Hooks
  • Introducing React and React Hooks
  • Technical requirements
  • Principles of React
  • Motivation for using React Hooks
  • Getting started with React Hooks
  • Overview of various Hooks
  • Summary
  • Questions
  • Further reading
  • Using the State Hook
  • Technical requirements
  • Reimplementing the useState function
  • Problems with our simple Hook implementation
  • Comparing our reimplementation with real Hooks
  • Alternative Hook APIs
  • Solving common problems with Hooks
  • Solving problems with conditional Hooks
  • Summary
  • Questions
  • Further reading
  • Writing Your First Application with React Hooks
  • Technical requirements
  • Structuring React projects
  • Implementing static components
  • Implementing stateful components with Hooks
  • Summary
  • Questions
  • Further reading
  • Section 2: Understanding Hooks in Depth
  • Using the Reducer and Effect Hooks
  • Technical requirements
  • Reducer Hooks versus State Hooks
  • Implementing Reducer Hooks
  • Using Effect Hooks
  • Summary
  • Questions
  • Further reading
  • Implementing React Context
  • Technical requirements
  • Introducing React context
  • Implementing themes
  • Using context for global state
  • Summary
  • Questions
  • Further reading
  • Implementing Requests and React Suspense
  • Technical requirements
  • Requesting resources with Hooks
  • Preventing unnecessary re-rendering with React.memo
  • Implementing lazy loading with React Suspense
  • Summary
  • Questions
  • Further reading
  • Using Hooks for Routing
  • Technical requirements
  • Creating multiple pages
  • Implementing routing
  • Using routing Hooks
  • Summary
  • Questions
  • Further reading
  • Using Community Hooks
  • Technical requirements
  • Exploring the input handling Hook
  • React life cycles with Hooks
  • Various useful Hooks
  • Responsive design with Hooks
  • Undo/Redo with Hooks
  • Finding other Hooks
  • Summary
  • Questions
  • Further reading
  • Rules of Hooks
  • Technical requirements
  • Calling Hooks
  • Order of Hooks
  • Names of Hooks
  • Enforcing the rules of Hooks
  • Dealing with useEffect dependencies
  • Summary
  • Questions
  • Further reading
  • Building Your Own Hooks
  • Technical requirements
  • Extracting custom Hooks
  • Using our custom Hooks
  • Interactions between Hooks
  • Testing Hooks
  • Exploring the React Hooks API
  • Summary
  • Questions
  • Further reading
  • Section 3: Integration and Migration
  • Migrating from React Class Components
  • Technical requirements
  • Handling state with class components
  • Migrating from React class components
  • Trade-offs of class components
  • Summary
  • Questions
  • Further reading
  • Redux and Hooks
  • Technical requirements
  • What is Redux?
  • Handling state with Redux
  • Using Redux with Hooks
  • Migrating a Redux application
  • Trade-offs of Redux
  • Summary
  • Questions
  • Further reading
  • MobX and Hooks
  • Technical requirements
  • What is MobX?
  • Handling state with MobX
  • Using MobX with Hooks
  • Migrating a MobX application
  • The trade-offs of MobX
  • Summary
  • Questions
  • Further reading
  • Assessments
  • Answers to questions
  • Other Books You May Enjoy

مشخصات

نام کتاب

Learn React Hooks

نویسنده

Daniel Bugl

انتشارات

Packt Publishing

تاریخ انتشار

2019

ISBN

9781838641443

چاپ

اول

تعداد صفحات

700

زبان

انگلیسی

فرمت

pdf

حجم

4.3MB

موضوع

React Hooks