Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learn React with TypeScript
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learn React with TypeScript

Learn React with TypeScript - Third Edition

By : Carl Rippon
4.5 (2)
close
close
Learn React with TypeScript

Learn React with TypeScript

4.5 (2)
By: Carl Rippon

Overview of this book

Reading, navigating, and debugging a large frontend codebase can be challenging. Learn React with TypeScript, 3rd Edition helps you overcome these challenges by teaching you React, TypeScript, and Next.js, which are core technologies for building scalable, high-performance apps. Updated for React 19, this new edition covers new features such as React Server Components, server functions, and powerful modern hooks, including useFormStatus and useActionState. You'll build type-safe components using TypeScript, making this book ideal for React beginners who want to master patterns aligned with real-world frontend and React developer roles. You’ll also explore Next.js for RSCs and routing, and learn to use Zustand for global state in React—a lightweight alternative to traditional state managers. The chapters guide you through efficient data-fetching strategies with RSCs in Next.js, as well as in single-page applications (SPAs). The book also covers form handling, reusable architecture, and testing React components with Vitest to ensure robust, production-ready apps. By the end of this book, you’ll have the confidence and skills to build maintainable React applications with TypeScript and Next.js, following modern web development best practices.
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
Part 1: Introduction
5
Part 2: App Fundamentals
9
Part 3:Data
13
Part 4:Advanced React
18
Other Books You May Enjoy
19
Index

Understanding Server Components

In this section, we will learn what RSCs are and their benefits.

Understanding what a Server Component is

RSCs were first introduced in the experimental React 18 version and fully released in React 19. React components before this version were all Client Components.

The React components we have built so far in this book aren’t RSCs – instead, they are Client Components. We’ll dive deeper into how Client Components can work alongside RSCs later in this chapter.

Here’s an example of an RSC:

export async function Person({ id }: { id: string }) {
    const result = await db
        .select({ name: people.name, notes: people.notes })
        .from(people)
        .where(eq(people.id, id));
    if (result.length === 0) {
      ...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learn React with TypeScript
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon