Designing React Hooks the Right Way: Explore design techniques and solutions to debunk React Hooks adoption myths
Language: English
Published by Packt Publishing Limited, 2022
- Softcover
- New

Seller: THE SAINT BOOKSTORE, Southport, United KingdomTHE SAINT BOOKSTORE
AbeBooks seller since June 14, 2006
Condition: New
£ 45.97
Quantity: Over 20 available
Add to basketItem description from seller
This item is printed on demand. New copy - Usually dispatched within 5-9 working days.
Seller Inventory # C9781803235950
- Title
- Designing React Hooks the Right Way: Explore design techniques and solutions to debunk React Hooks adoption myths
- Author
- Fang Jin
- Publisher
- Packt Publishing Limited
- Publication year
- 2022
- Condition
- New
- Binding
- Paperback / softback
- Language
- English
- ISBN 10
- 1803235950
- ISBN 13
- 9781803235950
- Item weight
- 100 grams
Get to grips with React Hooks and design your own custom Hook to manage application states for making better decisions in site architecture
Key Features
- Get to grips with Hooks' design and understand each built-in Hook's pitfalls with examples
- Discover how to turn your existing code into a reusable Hook via code refactoring
- Explore design solutions to identify and solve site performance issues involving Hooks
Book Description
React hook creates a unique solution for using states in function components to orchestrate UI communication. They provide you with an easy interface to write custom data management solutions with low development and maintenance costs. Understanding how Hooks are designed enables you to use them more effectively, and this book helps you to do just that.
This book starts with a custom-crafted solution to reveal why Hooks are needed in the first place. You will learn about the React engine and discover how each built-in Hook can manage a persistent value by hooking into it. You will walk through the design and implementation of each hook with code so that you gain a solid understanding. Finally, you'll get to grips with each Hook's pitfalls and find out how to effectively overcome them.
By the end of this React book, you'll have gained the confidence to build and write Hooks for developing functional and efficient web applications at scale.
What you will learn
- Create your own hooks to suit your state management requirement
- Detect the current window size of your website using useEffect
- Debounce an action to improve user interface (UI) performance using useMemo
- Establish a global site configuration using useContext
- Avoid hard-to-find application memory leaks using useRef
- Design a simple and effective API data layer using custom Hooks
Who this book is for
This book is for web developers who are looking for a consistent and efficient approach for applying application states with Hooks. Basic knowledge of React will help you to get the most out of this book.
Table of Contents
- Introducing the Function Component
- Crafting States in Functions
- Hooking into React
- Use State to Jumpstart Components
- Use Effect to Handle Side Effects
- Use Memo to Boost Performance
- Use Context to Cover an Area
- Use Ref to Hide Stuff
- Use Custom Hook to Reuse Logic
- Building a Website with React
"Synopsis" may belong to another edition of this title.
About the Author
"About the title" may belong to another edition of this title.
THE SAINT BOOKSTORE
Southport, United Kingdom
AbeBooks seller since June 14, 2006
Shipping rates from United Kingdom to U.S.A.
| Item | 7 to 28 business days | 7 to 28 business days |
|---|---|---|
| First item | £ 11.75 | £ 13.75 |
Payment methods
Store description
The Saint Bookstore has a range of over 1 million titles available.
Specialty
GeneralSeller's business information
SB ONLINE LTD
50 Devonshire Road
Southport, United Kingdom PR9 7BZ
Terms of sale
Please order through the Abebooks checkout. We only take orders through Abebooks - We don't take direct orders by email or phone.
Refunds or Returns: A full refund of the purchase price will be given if returned within 30 days in undamaged condition.
As a seller on abebooks we adhere to the terms explained at http://www.abebooks.co.uk/docs/HelpCentral/buyerIndex.shtml - if you require further assistance please email us at orders@thesaintbookstore.co.uk
Right of withdrawal
If you are a consumer you can withdraw from the contract in accordance with the following. Consumer means any natural person who is acting for purposes which are outside his trade, business, craft or profession.
Information regarding the right of withdrawal
Statutory right to withdraw
You have the right to withdraw from this contract within 14 days without giving any reason.
The withdrawal period will expire after 14 days from the day on which you acquire, or a third party other than the carrier and indicated by you acquires, physical possession of the last good or the last lot or piece.
To exercise the right of withdrawal, electronically fill in and submit a clear statement on our website, under "My Purchases" in "My Account". We will communicate to you an acknowledgement of receipt of such a withdrawal on a durable medium (e.g. by e-mail) without delay.
To meet the withdrawal deadline, it is sufficient for you to send your communication concerning your exercise of the right of withdrawal before the withdrawal period has expired.
Effects of withdrawal
If you withdraw from this contract, we will reimburse to you all payments received from you, including the costs of delivery (except for the supplementary costs arising if you chose a type of delivery other than the least expensive type of standard delivery offered by us).
We may make a deduction from the reimbursement for loss in value of any goods supplied, if the loss is the result of unnecessary handling by you.
We will make the reimbursement without undue delay, and not later than 14 days after the day on which we are informed about your decision to withdraw from this contract.
We will make the reimbursement using the same means of payment as you used for the initial transaction, unless you have expressly agreed otherwise; in any event, you will not incur any fees as a result of such reimbursement.
We may withhold reimbursement until we have received the goods back, or you have supplied evidence of having sent back the goods, whichever is the earliest.
You shall send back the goods or hand them over to THE SAINT BOOKSTORE, Southport, United Kingdom, without undue delay and in any event not later than 14 days from the day on which you communicate your withdrawal from this contract to us. The deadline is met if you send back the goods before the period of 14 days has expired. You will have to bear the direct cost of returning the goods. You are only liable for any diminished value of the goods resulting from the handling other than what is necessary to establish the nature, characteristics and functioning of the goods.
Exceptions to the right of withdrawal
The right of withdrawal does not apply to:
- The delivery of newspapers, journals or magazines with the exception of subscription contracts; and
- The supply of digital content which is not supplied on a tangible medium (e.g. on a CD or DVD) if you accepted when you placed your order that we could start to deliver it, and that you could not withdraw once delivery had started.
Shipping terms
Most orders usually ship within 1-3 business days, but some can take up to 7 days.