Learn React with TypeScript: A beginner's guide to reactive web development with React 18 and TypeScript, 2nd Edition 2nd ed. Edition
by Carl Rippon (Author)
Publisher Finelybook 出版社：Packt Publishing; 2nd ed. edition (March 3, 2023)
pages 页数：474 pages
Take your first step in building modern-day component-based web apps using the latest features and capabilities of React and TypeScript with this easy-to-follow guide
Learn to use different React hooks with TypeScript
Explore different styling approaches while building React web apps
Gain experience in using React Dev Tools to debug components
Purchase of the print or Kindle book includes a free PDF eBook
Reading, navigating, and debugging a large frontend codebase is a major issue faced by frontend developers. This book is designed to help web developers like you learn about ReactJS and TypeScript, both of which power large-scale apps for many organizations.
This second edition of Learn React with TypeScript is updated, enhanced, and improved to cover new features of React 18 including hooks, state management libraries, and features of TypeScript 4. The book will enable you to create well-structured and reusable React components that are easy to read and maintain, leveraging modern design patterns.
You'll be able to ensure that all your components are type-safe, making the most of TypeScript features, including some advanced types. You'll also learn how to manage complex states using Redux and how to interact with a GraphQL web API. Finally, you'll discover how to write robust unit tests for React components using Jest.
By the end of the book, you'll be well-equipped to use both React and TypeScript.
What you will learn
Gain first-hand experience of TypeScript and its productivity features
Build a React frontend codebase with hooks
Interact with REST and GraphQL web APIs
Design and develop strongly typed reusable components
Create automated component tests
Who this book is for
Table of Contents
3.Setting Up React and TypeScript
4.Using React Hooks
5.Approaches to Styling React Frontends
6.Routing with React Router
7.Working with Forms
9.Interacting with RESTful APls
10.Interacting with GraphQL APIs
12.Unit Testing with Jest and React Testing Library