LibCoder

Learn React Hooks: Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions. 2 Ed

1C Agda JavaScript
Learn React Hooks: Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions. 2 Ed
Автор: Bugl Daniel
Дата выхода: 2025
Издательство: Packt Publishing Limited
Количество страниц: 373
Размер файла: 2,6 МБ
Тип файла: PDF
Добавил: LibCoder
Оглавление
ContentsIntroductionSection 1: AuditingWhat's Covered?Planning Your Auditing StrategyGetting Into the Right MindsetRecording Your FindingsAutomated ToolingPHP InsightsEnlightnLarastanStyle CICode CoverageManual AuditingInvestigating "raw" Database QueriesFinding Incorrect AuthorisationChecking ValidationFinding "Fake Facades"Finding Business Logic in HelpersFinding N+1 QueriesFinding Controllers That Use Other ControllersFinding Logic and Queries in Blade ViewsFinding Hard-Coded CredentialsCheck Open Package RoutesReviewing Project DocumentationSection 2: TestingWhat's Covered?Planning Your Testing StrategyThe Benefits of Writing TestsSpotting Bugs EarlyMaking Future Work and Refactoring EasierChanging the Way You Approach Writing CodeTests-As-DocumentationProve That Bugs ExistStructuring Your TestsDirectory StructureChoosing What To TestTest StructureData ProvidersWriting the TestsPrioritising Mission-Critical Tests FirstWriting the Rest of the TestsBenefits of Writing the Easy Tests FirstPreventing Test FatigueTesting Your UI with Laravel DuskInstallationTesting a Simple FormDusk Pages and SelectorsRunning Failed Tests and GroupsCreating a CI Workflow Using GitHub ActionsUsing an .env.ci FileRunning the Test SuiteLarastanLaravel DuskOutputSection 3: FixingWhat's Covered?Planning Your Fixing StrategyUsing an Error Reporting SystemTypes of ErrorsThe Benefits of an Automated Error Reporting SystemError Reporting Using FlareUptime Checking, Queue Monitoring, and Scheduler MonitoringUptime Monitoring with Oh DearScheduler Monitoring with Oh DearQueue Monitoring with Oh DearUpdating PHP, Laravel, and PackagesUpgrading in Small IncrementsAutomating the Upgrade Using Laravel ShiftPlanning Upgrades EarlyUsing a Suitable Local Development EnvironmentUsing Tests to Fix BugsWhat is Test-Driven Development?The Advantages of Test-Driven DevelopmentThe Disadvantages of Test-Driven DevelopmentFixing a Real Bug Using Test-Driven DevelopmentSafely Removing Dead CodeChecking the Version Control HistoryScream TestLogging or Reporting the UsageRemoving the Code with an Atomic CommitSection 4: ImprovingWhat's Covered?Planning Your Improvement StrategyMaking the Most of PHP's Type SystemUsing Type Hints and Return TypesUnion TypesType Hints and Return Types in ClosuresDRYing Up Your CodeAdvantages of DRYing Up Your CodeWhen to DRY Up Your CodeRefactoring ConditionsReducing Indented CodeReplacing if and elseif with matchUsing the Nullsafe OperatorUsing Database TransactionsAdding the Database TransactionsManually Using Database TransactionsTips for Interacting with Third-Party ServicesUsing Automatic or Manual TransactionsDispatching Queued Jobs inside Database TransactionsImproving the Testability of Your CodeUsing Objects Over ArraysFinal WordsDiscount CodesFlareOh DearStyleCILaravel Security In Depth

Описание

Ниже — практический обзор по теме «hooks».

React Hooks allow you to easily encapsulate, reuse, and refactor logic with the same level of simplicity that components bring to user interface organization.

In this second edition, React expert and author of many popular React books, Daniel Bugl guides you through the full spectrum of React Hooks, and teaches you how to handle forms, routing, and data fetching in modern React development. This edition is fully updated to React 19, with a revamped structure, expanded real-world use cases, and coverage of all newly introduced Hooks.

The chapters guide you through using State, Reducer, and Effect Hooks to manage application state, side effects, and complex logic for building your first Hook-based app. Starting with the fundamentals, you'll gain a deep understanding of how Hooks work under the hood and how to apply Hooks patterns efficiently. You'll utilize Suspense and Context APIs for streamlined data fetching and state management, master Form Actions for handling submissions, and implement routing with Hooks. Finally, you’ll learn how to refactor an existing app with class components into modern Hooks architecture. You’ll also create custom Hooks for advanced functionality and write tests for reliability.

By the end of this React book, you'll be well-equipped to use React Hooks to modernize and optimize your React projects.

What you will learnMaster and apply new React 19 Hooks, such as useActionState, useFormStatus, useOptimistic, and others

Use React Hooks and Context to manage state in your web applications

Efficiently fetch, update, and cache data using TanStack Query and Suspense

Manage user input and form submission using Form Actions with Hooks

Discover how to implement routing in your apps using React Router and Hooks

Create and test your own Hooks to encapsulate, reuse, and refactor logic in your apps

Beginners and experienced developers alike will gain a solid understanding of Hooks and their internal workings. Who this book is forThis book is ideal for React developers looking to modernize their applications using React Hooks, Context, and Suspense. If you're familiar with React and JavaScript, this book will help you upskill by teaching you best practices, performance optimization, and scalable application building. No prior experience with Hooks is required—this book covers everything from fundamentals to advanced patterns.

На этом основные моменты по теме закрыты.

hooks react this your state using book context

Частые вопросы

Можно ли скачать «Learn React Hooks: Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions. 2 Ed» бесплатно?

Да, «Learn React Hooks: Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions. 2 Ed» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.

В каком формате и какого размера файл?

Книга предоставляется в формате PDF, размер файла 2,6 МБ.

Кто автор и когда вышла книга?

автор — Bugl Daniel, издательство Packt Publishing Limited, год выпуска 2025, 373 страниц.

О чём книга «Learn React Hooks: Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions. 2 Ed»?

React Hooks allow you to easily encapsulate, reuse, and refactor logic with the same level of simplicity that components bring to user interface organization.In this second edition, React expert and author of many popular React books, Danie

Похожие материалы