Learn React Hooks

by Daniel Bugl

Programming

Book Details

Book Title

Learn React Hooks

Author

Daniel Bugl

Publisher

Packt Publishing

Publication Date

2019

ISBN

9781838641443

Number of Pages

700

Language

English

Format

PDF

File Size

4.3MB

Subject

React Hooks

Table of Contents

  • Title Page
  • Copyright and Credits
  • Dedication
  • About Packt
  • Foreword
  • Contributors
  • Preface
  • Who this book is for
  • What this book covers
  • To get the most out of this book
  • Get in touch
  • Section 1: Introduction to Hooks
  • Introducing React and React Hooks
  • Technical requirements
  • Principles of React
  • Motivation for using React Hooks
  • Getting started with React Hooks
  • Overview of various Hooks
  • Summary
  • Questions
  • Further reading
  • Using the State Hook
  • Technical requirements
  • Reimplementing the useState function
  • Problems with our simple Hook implementation
  • Comparing our reimplementation with real Hooks
  • Alternative Hook APIs
  • Solving common problems with Hooks
  • Solving problems with conditional Hooks
  • Summary
  • Questions
  • Further reading
  • Writing Your First Application with React Hooks
  • Technical requirements
  • Structuring React projects
  • Implementing static components
  • Implementing stateful components with Hooks
  • Summary
  • Questions
  • Further reading
  • Section 2: Understanding Hooks in Depth
  • Using the Reducer and Effect Hooks
  • Technical requirements
  • Reducer Hooks versus State Hooks
  • Implementing Reducer Hooks
  • Using Effect Hooks
  • Summary
  • Questions
  • Further reading
  • Implementing React Context
  • Technical requirements
  • Introducing React context
  • Implementing themes
  • Using context for global state
  • Summary
  • Questions
  • Further reading
  • Implementing Requests and React Suspense
  • Technical requirements
  • Requesting resources with Hooks
  • Preventing unnecessary re-rendering with React.memo
  • Implementing lazy loading with React Suspense
  • Summary
  • Questions
  • Further reading
  • Using Hooks for Routing
  • Technical requirements
  • Creating multiple pages
  • Implementing routing
  • Using routing Hooks
  • Summary
  • Questions
  • Further reading
  • Using Community Hooks
  • Technical requirements
  • Exploring the input handling Hook
  • React life cycles with Hooks
  • Various useful Hooks
  • Responsive design with Hooks
  • Undo/Redo with Hooks
  • Finding other Hooks
  • Summary
  • Questions
  • Further reading
  • Rules of Hooks
  • Technical requirements
  • Calling Hooks
  • Order of Hooks
  • Names of Hooks
  • Enforcing the rules of Hooks
  • Dealing with useEffect dependencies
  • Summary
  • Questions
  • Further reading
  • Building Your Own Hooks
  • Technical requirements
  • Extracting custom Hooks
  • Using our custom Hooks
  • Interactions between Hooks
  • Testing Hooks
  • Exploring the React Hooks API
  • Summary
  • Questions
  • Further reading
  • Section 3: Integration and Migration
  • Migrating from React Class Components
  • Technical requirements
  • Handling state with class components
  • Migrating from React class components
  • Trade-offs of class components
  • Summary
  • Questions
  • Further reading
  • Redux and Hooks
  • Technical requirements
  • What is Redux?
  • Handling state with Redux
  • Using Redux with Hooks
  • Migrating a Redux application
  • Trade-offs of Redux
  • Summary
  • Questions
  • Further reading
  • MobX and Hooks
  • Technical requirements
  • What is MobX?
  • Handling state with MobX
  • Using MobX with Hooks
  • Migrating a MobX application
  • The trade-offs of MobX
  • Summary
  • Questions
  • Further reading
  • Assessments
  • Answers to questions
  • Other Books You May Enjoy