Enjoy fast, FREE delivery, exclusive deals and award-winning movies & TV shows with Prime
Try Prime
and start saving today with Fast, FREE Delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Instant streaming of thousands of movies and TV episodes with Prime Video
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$39.99$39.99
FREE delivery:
Wednesday, Dec 6
Ships from: Amazon.com Sold by: Amazon.com
Buy used: $30.37
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Learn React Hooks: Build and refactor modern React.js applications using Hooks
| Price | New from | Used from |
- Kindle
$18.49 Read with our free app - Paperback
$30.37 - $39.999 Used from $30.37 8 New from $39.99
Purchase options and add-ons
Create large-scale web applications with code that is extensible and easy to understand using React Hooks
Key Features
- Explore effective strategies for migrating your state management from Redux and MobX to React Hooks
- Integrate Hooks with React features such as Context and Suspense to add advanced functionality to your web apps
- Create complex applications by combining multiple hooks
Book Description
React Hooks revolutionize how you manage state and effects in your web applications. They enable you to build simple and concise React.js applications, along with helping you avoid using wrapper components in your applications, making it easy to refactor code.
This React book starts by introducing you to React Hooks. You will then get to grips with building a complex UI in React while keeping the code simple and extensible. Next, you will quickly move on to building your first applications with React Hooks. In the next few chapters, the book delves into various Hooks, including the State and Effect Hooks. After covering State Hooks and understanding how to use them, you will focus on the capabilities of Effect Hooks for adding advanced functionality to React apps. You will later explore the Suspense and Context APIs and how they can be used with Hooks. Toward the concluding chapters, you will learn how to integrate Redux and MobX with React Hooks. Finally, the book will help you develop the skill of migrating your existing React class components, and Redux and MobX web applications to Hooks.
By the end of this book, you will be well-versed in building your own custom Hooks and effectively refactoring your React applications.
What you will learn
- Understand the fundamentals of React Hooks and how they modernize state management in React apps
- Build your own custom Hooks and learn how to test them
- Use community Hooks for implementing responsive design and more
- Learn the limitations of Hooks and what you should and shouldn't use them for
- Get to grips with implementing React context using Hooks
- Refactor your React-based web application, replacing existing React class components with Hooks
- Use state management solutions such as Redux and MobX with React Hooks
Who this book is for
This book is for React developers who want to learn how to build applications with Hooks. Developers who are looking to migrate to React for its advanced feature set and capabilities will also find the book useful.
Table of Contents
- Introducing React and React Hooks
- Using the State Hook
- Writing Your First Application with React Hooks
- Using the Reducer and Effect Hooks
- Implementing React Context
- Implementing Requests and React Suspense
- Using Hooks for Routing
- Using Community Hooks
- Rules of Hooks
- Building Your Own Hooks
- Migrating from React Class Components
- Redux and Hooks
- MobX and Hooks
- ISBN-101838641440
- ISBN-13978-1838641443
- PublisherPackt Publishing
- Publication dateOctober 18, 2019
- LanguageEnglish
- Dimensions7.5 x 0.96 x 9.25 inches
- Print length426 pages
Frequently bought together

Customers who viewed this item also viewed
React Key Concepts: Consolidate your knowledge of React's core featuresMaximilian SchwarzmullerPaperback
Editorial Reviews
Review
About the Author
Daniel Bugl is a developer, product designer, and entrepreneur focusing on web technologies. He has a Bachelor of Science degree in business informatics and information systems and is now studying data science at the Vienna University of Technology (TU Wien). He is a contributor to many open source projects and a member of the React community. He also founded and runs his own hardware/software start-up, TouchLay, which helps other companies present their products and services. At his company, he constantly works with web technologies, particularly making use of React and React Hooks.
Product details
- Publisher : Packt Publishing (October 18, 2019)
- Language : English
- Paperback : 426 pages
- ISBN-10 : 1838641440
- ISBN-13 : 978-1838641443
- Item Weight : 1.6 pounds
- Dimensions : 7.5 x 0.96 x 9.25 inches
- Best Sellers Rank: #1,998,148 in Books (See Top 100 in Books)
- #536 in User Experience & Website Usability
- #542 in JavaScript Programming (Books)
- #8,946 in Internet & Social Media
- Customer Reviews:
Important information
To report an issue with this product, click here.
About the author

Daniel Bugl is a developer, product designer, and entrepreneur focusing on web technologies. He has a Bachelor of Science degree in business informatics and information systems and is now studying data science at the Vienna University of Technology (TU Wien). He is a contributor to many open source projects and a member of the React community. He also founded and runs his own hardware/software start-up, TouchLay, which helps other companies present their products and services. At his company, he constantly works with web technologies, particularly making use of React, React Hooks and Redux.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The book starts off great. You learn some basic concepts about hooks, then you slowly build an app. As you progress through the book, the app gets refactored to use React Hooks. The book does a particularly good job discussing the useState hook.
Chapter 3 is where I started to run into trouble, and by chapter 4 I was completely lost. The book requires you to build on the app from previous chapters. That is fine, but starting around Chapter 3, the author provides the code to enter but does not tell you where to put it. This resulted in a lot of trial and error. I used the downloadable code to figure it out, but the downloadable code is the completed version of the chapter. This means I had to dig through the downloadable code for the section of the chapter I'm reading while avoiding the new code that would be added in later sections. I could chalk this up to my own limitations, but it still made for a frustrating experience.
By Chapter 4, it felt like I was just typing in code without understanding what I was doing. I will admit that I'm not a Javascript/React guru, but I felt like I needed to be one in order to get through this book. I gave up at Chapter 5.
Overall, this book has potential, but it falls short. It's difficult to follow and makes many assumptions about the reader's skillset. After four chapters, I understand how to use a hook (syntax-wise), but I'm still unclear on the when and why, though the author does make a quick attempt to explain it.
However, its flaws could be fixed in a 2nd Edition, and I would give it another chance. Also, the author does a lot of cool stuff with Javascript; I learned some Javascript techniques that were unrelated to hooks, so that was a pleasant benefit.
Lastly, kudos to the author for writing a book on such a cutting-edge concept.
The book is very well written and the first few chapters are reasonably forgiving to newer react developers and even provide the reader with an under-the-hood understanding of useState for example by basically creating it from scratch.
The one downside is it seems to be intended for people who have already finished a few react applications and are now tasked with evaluating components and possibly refactoring class-based components to react hooks. So, personally I would recommend it to mid to senior-level developers or very advanced beginners.
Top reviews from other countries
After explaining the useState hook fundamentals, he does a pretty good overview of how to use each of the new Hooks included in React 17. He also devotes a chapter to a variety of useful 3rd party "community" hooks, and a chapter each to using Redux and MobX with hooks.
The bulk of the book is structured around building a very simple blog SPA. It's far too simple for a real production site, but it serves as a decent example. The book is essentially a very long step-by-step tutorial. Along the way, the author does a nice job of explaining how to do things with Hooks that you previously did with class-based React Component lifecycle events (componentDidMount, etc.), giving various examples of migrating from the old style to hooks.
My only 2 complaints about this book are pretty minor, but I pulled a star for them:
1) Although the author steps you thru a lot of good code examples in great detail (line-by-line in many cases), he never includes the complete finished code sample at the end. Yes, you can download all the code from GitHub, but if you're offline (or just lazy), you never see the completed full example code in the book, so you just have to keep all the incremental changes in your mind and imagine it as a full script.
2) Since this is a tutorial-style book - it's almost exclusively a "tactical implementation" book, and as such is very opinionated and follows a 1-track path. I wish he'd included more theory in every chapter (ie. pros/cons, gotchas, best practices, different approaches, etc.). It's just not that kind of a book, which is OK ... that just leaves room for the 2nd edition to be even better. ;-)
Overall this is a very good introduction to hooks, and will give any competent React developer a solid start for using Hooks in their web apps.




