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
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
Skills of a Successful Software Engineer
Skills to grow from a solo coder into a productive member of a software development team, …
book
Using Asyncio in Python
If you’re among the Python developers put off by asyncio’s complexity, it’s time to take another …
book
Web Development with Node and Express, 2nd Edition
Build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …