My Account Log in

1 option

React Design Patterns and Best Practices : Design, Build, and Deploy Production-Ready Web Applications by Leveraging Industry-best Practices.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Roldán, Carlos Santana.
Language:
English
Subjects (All):
REAC (Computer).
Web applications.
Physical Description:
1 online resource (666 pages)
Edition:
1st ed.
Place of Publication:
Birmingham : Packt Publishing, Limited, 2026.
Summary:
Build fast and scalable web apps with React 19 and Next.js 16 by applying proven design patterns, avoiding common anti patterns, and shipping production features with testing, CI/CD, and practical AI assisted workflows Key Features Updated for React 19 & Next.js 16 with modern, production-ready design patterns Full-stack React mastery with.
Contents:
Intro
React Design Patterns and Best Practices
Fifth Edition
Design, build, and deploy production-ready web applications by leveraging industry-best practices
Contributors
About the author
About the reviewers
Table of Contents
Preface
Who this book is for
What this book covers
To get the most out of this book
Get in touch
Free benefits with your book
1
Mastering React Server Components (RSC)
Technical requirements
Introduction to RSC: why they matter
Setting up RSC in Next.js 16+
Writing optimized RSC
Differentiating server and client components
Efficient data fetching with RSC
What's new in React 19.2?
Summary
2
Actions, Server Interactions, and Caching
Understanding Actions in React 19
Handling form submissions with use server
Optimistic UI updates with useOptimistic
Managing form state with useFormStatus and useActionState
Enhancing performance with caching strategies
What's new in Next.js 16?
3
Advanced Error Handling and Debugging
Introducing error handling in React 19
Implementing error boundaries in React
Handling errors with onCaughtError, onUncaughtError, and onRecoverableError
Debugging hydration issues in server-rendered React apps
Strategies for debugging React applications
Best practices and production considerations
4
Advanced State Management Techniques
State management with use for async operations
Optimizing rendering performance with useDeferredValue
Managing cleanup and side effects with ref callbacks
Understanding Redux Toolkit: benefits and use cases
Context API vs. Redux: when to use each
Zustand: lightweight state management for modern applications.
Best practices for managing global and local state
5
React Anti-Patterns and Best Practices
Common state and props anti-patterns
Overusing global state when local state suffices
Key and list handling mistakes
Event handling and performance issues
Component structure and re-renders
6
Styling and Building Scalable Design Systems in React
Introduction to styling in React: why design systems matter
Tailwind CSS: a utility-first approach to styling
Building component-based UI libraries
Leveraging shadcn/ui for scalable UI development
Ensuring accessibility and performance in design systems
Handling dark mode and theme switching
Leveraging V0 for rapid UI development
Integrating Claude Code for development efficiency
Practical integration strategies
7
React Hooks
Introducing React Hooks
Migrating a class component to React Hooks
Understanding React effects
Understanding useCallback, useMemo, and memo
Understanding the useReducer Hook
The new React Compiler: automatic memoization and optimization
Modern React Hooks in React 19
8
React Router 7
Installing and configuring React Router
Defining routes and nested layouts
Adding parameters to routes and handling dynamic data
React Router v7 and the integration of Remix
9
Advanced Form Handling in React
The challenges of form handling in React
Managing form state with useActionState and useFormStatus
Validation strategies with Zod
Leveraging new FormData() for form handling
Best practices for scalable form architectures
10
Scalable Application Architecture and Project Setup
Structuring React projects for scalability and maintainability.
Monorepo vs. multirepo: choosing the right strategy
Best practices for organizing components, files, and assets
Enforcing code quality: linting, formatting, and pre-commit hooks
Optimizing build, deployment, and CI/CD pipelines
11
Authentication and Authorization with NextAuth.js
Introducing authentication in React and Next.js
Setting up NextAuth.js in a Next.js 16 application
Integrating authentication providers in NextAuth.js
Handling authentication in RSC
Implementing role-based access control (RBAC) and permissions
12
Building Dynamic and Automatic APIs with Express, Node.js, PostgreSQL, and Drizzle ORM
Introducing dynamic API development
Setting up a Node.js Express server
Integrating PostgreSQL with Drizzle ORM
Generating dynamic CRUD APIs automatically
Optimizing API performance
Advanced patterns and real-world considerations
13
Internationalization (i18n) in React Applications
Understanding the client-side i18n architecture
Understanding type foundations
Exploring locale normalization
Resolving the browser locale
Understanding translation file structure
Importing dictionaries directly
Creating a synchronous translation function
Building an I18nProvider
Exposing translations through useI18n
Building a language switcher
Integrating translations into pages and components
Supporting right-to-left languages
Testing components that use useI18n
Common mistakes to avoid
14
Automated Testing for React Applications
Writing unit tests with Jest and React Testing Library
Integration testing for React Components
Setting up Playwright for end-to-end testing
Automating tests in CI/CD pipelines with GitHub Actions
15
Continuous Integration and Delivery (CI/CD).
Setting up a CI/CD pipeline with GitHub Actions
Automating builds and testing in deployment pipelines
Managing environment-specific configurations in CI/CD
16
Optimizing Performance in React Applications
Understanding React's rendering and reconciliation processes
Performance optimization techniques for React apps
Tools and libraries for performance monitoring
Hydration performance
Advanced performance enhancements in React 19
17
Deploying to Production
Understanding the production landscape
Building for production
Signing up to Vercel
Creating our first project
Configuring a domain
Performance optimization in production
Monitoring and troubleshooting
Working with the Vercel CLI
Continuous improvement
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Index.
Notes:
Description based on publisher supplied metadata and other sources.
Part of the metadata in this record was created by AI, based on the text of the resource.
ISBN:
9781806108244
OCLC:
1611779721

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account