Book description
PUBLISHER'S NOTE: An updated 2024 edition of this book, with new emphasis on TypeScript, is now available.
Key Features
- Discover React’s latest features including automatic state update batching and prioritizing state updates
- Get to grips with React architecture to write cross-platform apps using libraries such as NativeBase
- Understand GraphQL and Apollo for building a scalable backend for your applications
Book Description
Over the years, React and React Native has proven itself among JavaScript developers as a popular choice for a complete and practical guide to the React ecosystem. This fourth edition comes with the latest features, enhancements, and fixes to align with React 18, while also being compatible with React Native. It includes new chapters covering critical features and concepts in modern cross-platform app development with React.
From the basics of React to popular components such as Hooks, GraphQL, and NativeBase, this definitive guide will help you become a professional React developer in a step-by-step manner. You'll begin by learning about the essential building blocks of React components. As you advance through the chapters, you'll work with higher-level functionalities in application development and then put your knowledge to work by developing user interface components for the web and native platforms. In the concluding chapters, you'll learn how to bring your application together with robust data architecture.
By the end of this book, you'll be able to build React applications for the web and React Native applications for multiple mobile platforms.
What you will learn
- Explore React architecture, component properties, state, and context
- Work with React Hooks for handling functions and components
- Implement code splitting using lazy components and Suspense
- Build robust user interfaces for mobile and desktop apps using Material-UI
- Write shared components for Android and iOS apps using React Native
- Simplify layout design for React Native apps using NativeBase
- Write GraphQL schemas to power web and mobile apps
- Implement Apollo-driven components
Who this book is for
This book is for any JavaScript developer who wants to start learning how to use React and React Native for mobile and web application development. No prior knowledge of React is required, however working knowledge of JavaScript is necessary to be able to follow along the content covered.
Table of contents
- Fourth Edition
- React and React Native
- Contributors
- About the authors
- About the reviewers
- Preface
- Part 1 – React
- Chapter 1: Why React?
- Chapter 2: Rendering with JSX
- Chapter 3: Component Properties, State, and Context
- Chapter 4: Getting Started with Hooks
- Chapter 5: Event Handling, the React Way
- Chapter 6: Crafting Reusable Components
- Chapter 7: The React Component Life Cycle
- Chapter 8: Validating Component Properties
- Chapter 9: Handling Navigation with Routes
- Chapter 10: Code Splitting Using Lazy Components and Suspense
- Chapter 11: Server-Side React Components
- Chapter 12: User Interface Framework Components
- Chapter 13: High-Performance State Updates
- Part 2 – React Native
- Chapter 14: Why React Native?
- Chapter 15: React Native under the Hood
- Chapter 16: Kick-Starting React Native Projects
- Chapter 17: Building Responsive Layouts with Flexbox
- Chapter 18: Navigating Between Screens
- Chapter 19: Rendering Item Lists
- Chapter 20: Showing Progress
- Chapter 21: Geolocation and Maps
- Chapter 22: Collecting User Input
- Chapter 23: Displaying Modal Screens
- Chapter 24: Responding to User Gestures
- Chapter 25: Using Animations
- Chapter 26: Controlling Image Display
- Chapter 27: Going Offline
- Chapter 28: Selecting Native UI Components Using NativeBase
- Part 3 – React Architecture
- Chapter 29: Handling Application State
- Chapter 30: Why GraphQL?
- Chapter 31: Building a GraphQL React App
- Other Books You May Enjoy
Product information
- Title: React and React Native - Fourth Edition
- Author(s):
- Release date: May 2022
- Publisher(s): Packt Publishing
- ISBN: 9781803231280
You might also like
book
React and React Native - Third Edition
Get up to speed with React, React Native, GraphQL and Apollo for building cross-platform native apps …
book
React and React Native - Fifth Edition
Get a big-picture view of modern React and React Native and see how they go hand-in-hand …
book
React Native in Action
React Native in Action gives iOS, Android, and web developers the knowledge and confidence they need …
book
React: Up & Running, 2nd Edition
Hit the ground running with React, the open source technology from Facebook for building rich web …