Get a big-picture view of modern React and React Native and see how they go hand-in-hand, covering TypeScript development, Vite, state management strategies, unit testing with Vitest, advanced techniques, and AI tips and tricks.
Key Features:
- New content on TypeScript, React frameworks, state management strategies, unit testing, and AI-powered productivity.
- Get to grips with React fundamentals and modern React techniques and architecture
- Broaden your React expertise through mobile development with React Native
Book Description:
Welcome to your big-picture guide to the React ecosystem.
If you're new to React and looking to become a professional React developer, this book is for you. This updated sixth edition reflects the current state of React, including coverage of React frameworks and TypeScript.
Part 1 introduces you to React. You'll discover JSX syntax, hooks, functional components, and event handling, learn techniques to fetch data from a server, and tackle the tricky problem of state management. Once you're comfortable with writing React in JavaScript, you'll pick up TypeScript development in later chapters.
Part 2 transitions you into React Native for mobile development. React Native goes hand-in-hand with React. With your React knowledge in place, you'll appreciate where and how React Native differs as you write shared components for Android and iOS apps. You'll learn how to build responsive layouts, use animations, and implement geolocation.
Finally, a new chapter shows you how to use AI as a learning partner, covering practical workflows for AI-assisted debugging, evaluating AI-generated code, recognizing common pitfalls in React and React Native output, and writing code deliberately to deepen your understanding.
By the end of this book, you'll have a big-picture view of React and React Native, and be able to build applications with both.
What You Will Learn:
- Explore React architecture, component properties, state, and context
- Work with React Hooks for handling functions and components
- Fetch data from a server using the Fetch API, GraphQL, and WebSockets
- Dive into internal and external state management strategies
- Build robust user interfaces (UIs) for web apps using Material-UI
- Perform unit testing for your components with Vitest and mocking techniques
- Manage app performance with server-side rendering, lazy components, and Suspense
Who this book is for:
This book is for any JavaScript or TypeScript developer who wants to start learning how to use React and React Native for web and mobile app development.
No prior knowledge of React or React Native is required. However, a working knowledge of JavaScript is necessary to be able to follow along with the content covered.
Table of Contents
- Why React?
- Rendering with JSX
- Understanding React Components and Hooks
- Event Handling in the React Way
- Crafting Reusable Components
- Type-Checking and Validation with TypeScript
- Handling Navigation with Routes
- Code Splitting Using Lazy Components and Suspense
- User Interface Framework Components
- High-Performance State Updates
- Fetching Data from a Server
- State Management in React
- Server-Side Rendering
- Unit Testing in React
- Why React Native?
- React Native Under the Hood
- Kick-Starting React Native Projects
- Building Responsive Layouts with Flexbox
- Navigating Between Screens
- Rendering Item Lists
外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。
無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。