
React and React Native
A complete hands-on guide to modern web and mobile development with React.js, 3rd Edition
- 526 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
React and React Native
A complete hands-on guide to modern web and mobile development with React.js, 3rd Edition
About this book
Get up to speed with React, React Native, GraphQL and Apollo for building cross-platform native apps with the help of practical examples
Key Features
- Covers the latest features of React such as Hooks, Suspense, NativeBase, and Apollo in this updated third edition
- Get to grips with the React architecture for writing easy-to-manage web and mobile applications
- Understand GraphQL and Apollo for building a scalable backend for your cross-platform apps
Book Description
React and React Native, Facebook's innovative User Interface (UI) libraries, are designed to help you build robust cross-platform web and mobile applications. This updated third edition is improved and updated to cover the latest version of React. The book particularly focuses on the latest developments in the React ecosystem, such as modern Hook implementations, code splitting using lazy components and Suspense, user interface framework components using Material-UI, and Apollo. In terms of React Native, the book has been updated to version 0.62 and demonstrates how to apply native UI components for your existing mobile apps using NativeBase.
You will begin by learning about the essential building blocks of React components. Next, you'll progress to working with higher-level functionalities in application development, before putting this knowledge to use by developing user interface components for the web and for native platforms. In the concluding chapters, you'll learn how to bring your application together with a 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
- Delve into the React architecture, component properties, state, and context
- Get to grips with React Hooks for handling functions and components
- Implement code splitting in React using lazy components and Suspense
- Build robust user interfaces for mobile and desktop apps using Material-UI
- Write shared components for Android and iOS mobile apps using React Native
- Simplify layout design for React Native apps using NativeBase
- Write GraphQL schemas to power web and mobile apps
- Implement web and mobile components that are driven by Apollo
Who this book is for
This book is for any JavaScript developer who wants to start learning how to use Facebook's UI libraries, React and React Native, for mobile and web application development. Although no prior knowledge of React is needed, working knowledge of JavaScript programming will help you understand the concepts covered in the book more effectively.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
- 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
- What is React?
- React Features
- What's new in React?
What is React?
React is just the view layer

Simplicity is good

- The React Component API: These are the parts of the page that are actually rendered by React DOM.
- React DOM: This is the API that's used to perform the actual rendering on a web page.
- Data: This is data that comes from somewhere (the component doesn't care where), and is rendered by the component.
- Lifecycle: This consists of methods or Hooks that we implement to respond to the component's entering and exiting phases of the React rendering process as they happen over time. For example, one phase of the lifecycle is when the component is about to be rendered.
- Events: These are the code that we write for responding to user interactions.
- JSX: This is the syntax of React components used to describe UI structures.
Declarative UI structures
Time and data
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Section 1: React
- Why React?
- Rendering with JSX
- Component Properties, State, and Context
- Getting Started with Hooks
- Event Handling - The React Way
- Crafting Reusable Components
- The React Component Life Cycle
- Validating Component Properties
- Handling Navigation with Routes
- Code Splitting Using Lazy Components and Suspense
- Server-Side React Components
- User Interface Framework Components
- Section 2: React Native
- Why React Native?
- Kick-Starting React Native Projects
- Building Responsive Layouts with Flexbox
- Navigating Between Screens
- Rendering Item Lists
- Showing Progress
- Geolocation and Maps
- Collecting User Input
- Displaying Modal Screens
- Responding to User Gestures
- Controlling Image Display
- Going Offline
- Section 3: React Architecture
- Native UI Components Using NativeBase
- Handling Application State
- Why Apollo?
- Building an Apollo React App
- Other Books You May Enjoy