Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learn React Hooks

You're reading from  Learn React Hooks

Product type Book
Published in Oct 2019
Publisher Packt
ISBN-13 9781838641443
Pages 426 pages
Edition 1st Edition
Languages
Author (1):
Daniel Bugl Daniel Bugl
Profile icon Daniel Bugl

Table of Contents (19) Chapters

Preface 1. Section 1: Introduction to Hooks
2. Introducing React and React Hooks 3. Using the State Hook 4. Writing Your First Application with React Hooks 5. Section 2: Understanding Hooks in Depth
6. Using the Reducer and Effect Hooks 7. Implementing React Context 8. Implementing Requests and React Suspense 9. Using Hooks for Routing 10. Using Community Hooks 11. Rules of Hooks 12. Building Your Own Hooks 13. Section 3: Integration and Migration
14. Migrating from React Class Components 15. Redux and Hooks 16. MobX and Hooks 17. Assessments 18. Other Books You May Enjoy

Questions

To recap what we have learned in this chapter, try answering the following questions:

  1. What are React's three fundamental principles?
  2. What are the two types of components in React?
  3. What are the problems with class components in React?
  4. What is the problem of using higher-order components in React?
  1. Which tool can we use to set up a React project, and what is the command that we need to run to use it?
  2. What do we need to do if we get the following error with class components: TypeError: undefined is not an object (evaluating 'this.setState')?
  3. How do we access and set React state using Hooks?
  4. What are the advantages of using function components with Hooks, in comparison to class components?
  5. Do we need to replace all class components with function components using Hooks when updating React?
  6. What are the three basic Hooks that are provided by React?
...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}