Book description
Hit the ground running with React, the open source technology from Facebook for building rich web applications fast. Updated for the latest React release, the second edition of this hands-on guide shows you how to build React components and organize them into maintainable large-scale apps. If you're familiar with JavaScript syntax, you're ready to get started.
Through the course of this book, author Stoyan Stefanov helps web developers and programmers build a complete single-page application. You'll quickly learn why some developers consider React the key to the web app development puzzle.
- Set up React and write your first "Hello, World" web app
- Create and use custom React components alongside generic DOM components
- Build a data table component that lets you edit, sort, search, and export its contents
- Master the JSX syntax
- Use built-in Hooks and create your own custom ones
- Manage the app's data flow with reducers and contexts
- Use Create React App to take care of the build process and focus on React itself
- Build a complete custom app that lets you store data on the client
Publisher resources
Table of contents
- Preface
- 1. Hello World
-
2. The Life of a Component
- A Custom Function Component
- A Custom Class Component
- Properties
- State
- A textarea Component
- Make It Stateful
- A Note on DOM Events
- Props Versus State
- Props in Initial State: an Antipattern
- Accessing the Component from the Outside
- Lifecycle Methods
- Lifecycle Example: Log It All
- Lifecycle Example: Using a Child Component
- Performance Win: Prevent Component Updates
- Whatever Happened to Function Components?
- 3. Excel: A Fancy Table Component
- 4. Functional Excel
- 5. JSX
- 6. Setting Up for App Development
- 7. Building the App’s Components
- 8. The Finished App
- Index
Product information
- Title: React: Up & Running, 2nd Edition
- Author(s):
- Release date: November 2021
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492051466
You might also like
book
React Hooks in Action
Build stylish, slick, and speedy-to-load user interfaces in React without writing custom classes. React Hooks are …
book
React Cookbook
React helps you create and work on an app in just a few minutes. But learning …
book
Just React!: Learn React the React Way
Here is your perfect companion for learning about and developing React applications. This book introduces concepts …
book
GraphQL in Action
Reduce bandwidth demands on your APIs by getting only the results you need—all in a single …